mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-30 19:04:32 +00:00
Fix second param to preg_match
(#78)
Co-authored-by: rvogel <vogel@hallowelt.biz>
This commit is contained in:
parent
b0c16cc660
commit
1024e445ff
|
@ -407,7 +407,7 @@ class Parameters extends ParametersData {
|
|||
// would throw an error due to a bad regex from user input.
|
||||
|
||||
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
|
||||
if ( @preg_match( $regex, null ) === false ) {
|
||||
if ( @preg_match( $regex, '' ) === false ) {
|
||||
// @phan-suppress-previous-line PhanParamSuspiciousOrder, PhanTypeMismatchArgumentInternalProbablyReal
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue