Space is double-escaped when submitting custom shorturl keyword
Author: dgwCreated Dec 30, 2023Updated Oct 1, 2024
Labelsbug
Code of Conduct
- I agree to follow this project's Code of Conduct.
Submission validity
- This is not a personal support request, that should be posted on discussions community.
- I checked current issues and this request isn't a duplicate of an existing issue, opened or closed.
Self troubleshooting
- I've read the documentation and made sure to follow it.
- I've read the troubleshooting first steps and frequent issues guides.
Version
1.9.2
Description
When using a simple custom plugin such as shown in #3694 to allow (%20) in shorturl keywords, it is still not possible to create a custom keyword containing via the admin panel.
As submitted to the admin-ajax.php endpoint, the custom keyword (e.g. some space) appears to be double-escaped as some%2520space in the parameters sent. This leads the backend to create a shorturl with the incorrect keyword some20space.
Expectation
The frontend should only escape the keyword parameter containing a space once (some%20space), and the backend should then create the keyword some space (assuming that has been added to the shorturl charset by a plugin).
Reproduction steps
No response
Context
No response
Source: YOURLS/YOURLS