https://bugzilla.wikimedia.org/show_bug.cgi?id=60203

       Web browser: ---
            Bug ID: 60203
           Summary: Warning: strpos(): Empty delimiter in
                    /.../AbuseFilter.parser.php on line 1912
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: AbuseFilter
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: accnospam...@yahoo.de
                CC: agarr...@wikimedia.org, nischay...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

Warning triggered in our wiki when uploading, moving, deleting a file or
deleting a page ...

In this cases, the var $needle isn't defined (I don't know why), so strpos
fails.

I manually fixed this warning in our wiki by adding

if (isset($needle)) { 
...
}

around the foreach-part in at line 1912

https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FAbuseFilter/9c1d878b76ff9e2f65fda6556b1fec0b67e1bb1f/AbuseFilter.parser.php#L1912

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to