-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Labels
bugSomething isn't workingSomething isn't working
Description
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
If the config.php file does not set the $yourls_reserved_URL variable, trying to add a shorturl will make YOURLS try in_array( 'newkeyword', NULL) when checking if the keyword is reserved, and the script will crash.
Expectation
YOURLS should handle the case where this variable is not set, and treat it the same as if it is set to an empty array.
Reproduction steps
- Remove or comment out the definition of
$yourls_reserved_URLinconfig.php - Try to shorten a new URL
Context
Exposed via troubleshooting in #3767; documentation workaround suggested in #3768.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working