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

       Web browser: ---
            Bug ID: 59705
           Summary: Sending an invalid XFF header throws a QueryError
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: easy
          Severity: normal
          Priority: Unprioritized
         Component: GlobalBlocking
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: legoktm.wikipe...@gmail.com
                CC: agarr...@wikimedia.org, skizz...@gmail.com,
                    wikimedia.b...@snowolf.eu
    Classification: Unclassified
   Mobile Platform: ---

Discovered by Skizzerz:

Query: SELECT  *  FROM `globalblocks`  WHERE ()  <br />
Function: GlobalBlocking::checkIpsForBlock<br />
Error: 1064 You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use nea
r ')' at line 1 (localhost)<br />

The function should just check that if $conds === array(), return and not
bother executing the query.

-- 
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