PluginProbe
The WP Remote WordPress Plugin / 6.76
The WP Remote WordPress Plugin v6.76
6.76 6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 All 54 releases
← All changes | helper.php +3 -2 6.696.76 View file →
@@ -51,9 +51,10 @@
51 51 public static function safePregMatch($pattern, $subject, &$matches = null, $flags = 0, $offset = 0) {
52 52 if (!is_string($pattern) || !is_string($subject)) {
53 53 return false;
54 54 }
55 - return preg_match($pattern, $subject, $matches, $flags, $offset);
55 + $result = @preg_match($pattern, $subject, $matches, $flags, $offset);
56 + return $result === false ? false : $result;
56 57 }
57 58
58 59 # XNOTE - The below function assumes valid input
59 60 # $array should be an array and $keys should be an array of string, or integer data
@@ -407,5 +408,5 @@
407 408 return $value !== null ? self::maybeUnslashValue($value) : null;
408 409 }
409 410 // phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing
410 411 }
411 -endif;
412 +endif;