Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload (replace) thumbnail redirect URL wrong #32

Open
phiw13 opened this issue Dec 17, 2024 · 1 comment
Open

upload (replace) thumbnail redirect URL wrong #32

phiw13 opened this issue Dec 17, 2024 · 1 comment

Comments

@phiw13
Copy link

phiw13 commented Dec 17, 2024

Image edit panel

select a thumbnail, manually upload a replacement, submit.

The redirect after uploading leads to a 404 (Hopefully you can spot the issue :-)):

domain.tld/textpattern/%7B?event=image&step=image_edit&id=56}

On this line:

$scriptout = 'window.location.href="{' . $url . '}";';

I removed the opening and closing {} and all was well.

@Bloke
Copy link
Owner

Bloke commented Dec 17, 2024

How the hell did those braces get in there? What was I thinking when I (probably) copy n pasted them from elsewhere?

Honestly, these programmers. I dunno where they get them from. Such idiots.

Thank you for the report. Will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants