-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
php 7.3. regex and hyphen has to be escaped. #4036
Comments
Went through all Not sure about this one: e_parse_class.php if($type === 'file')
{
return preg_replace('/[^\w\d_\.-]/',"-",$text);
} |
Self-note: also good potential for unit testing |
Think we got them all. Otherwise hopefully they'll be caught by the unit tests. |
@Moc i assume you are talking about caught them all in present files? Helas.. just use preg_replace as search item for this repo (here) There are still some present.. Sorry in case i am mistaken here (in understanding) |
Which ones? You need to look specifically for those that cause an error in PHP 7.3 because of the hyphen. |
Noticed some hyphens, but probably mistaken. (likely they are already done; understanding as mentioned before). |
Feel free to let me know which ones you saw. Maybe you are right :) |
Just note.
It was mentioned here already:
https://github.com/e107inc/e107/issues/3986
But I found next regex with an unescaped hyphen. In e107_admin/dp.php file
The text was updated successfully, but these errors were encountered: