Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
functions.inc.php: escape minus in regex
This makes CGP work on PHP 7.3 as it otherwise only shows an "Unknown host" error message and logs the following PHP warning: PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in .../inc/functions.inc.php on line 37
- Loading branch information
16e710f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, error prone version will be:
[\w.: -]
Due to "dash not treated as 'range' if it's supplied as last symbol inside symbol set"