You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.
PHP Warning: stristr(): Empty needle in /home/user/public_html/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42, referer: https://www.google.com/
and
stristr(): Empty needle in /home/user/public_html/wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php on line 187
in both cases w3tc doesn't check empty needle in stristr:
if ( stristr($comment, $ignoredComment) !== false) {
returntrue;
}
From forum https://wordpress.org/support/topic/php-warning-stristr-empty-needle-2/
and
stristr(): Empty needle in /home/user/public_html/wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php on line 187
in both cases w3tc doesn't check empty needle in stristr:
my fix is a simple check for non empty needle:
The text was updated successfully, but these errors were encountered: