-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.1] Quote user-supplied content for use in preg_match (#13059)
* Quote user-supplied content for use in preg_match * Remove preg_match silent error discarding * Use delimiter not used in the regex itself * Add tests for regex escaping
- Loading branch information
1 parent
0e73cba
commit dcef6c5
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters