Fix instances of preg_quote() without second parameter
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 25 Jun 2015 17:43:56 +0000 (19:43 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 25 Jun 2015 17:43:56 +0000 (19:43 +0200)
commit1021f201007bfe8ba9789115ef8e0e48abc0adfd
tree5988fea6f9269f32eb5745519e916622437f23b8
parent9abf45ce39a5ded2acfdbd88afff8a204f5813fa
Fix instances of preg_quote() without second parameter

This might work in specific cases, depending on the string we're
quoting, but is never correct. The instance in SpecialAllMessages.php
was resulting in incorrect behavior (and log spam, T103879).

Searched for this regex: preg_quote\((?:\([^)]+?\)|[^,()])+?\)

Change-Id: Icc88775970f4927ddf953e5ad7c5c19d59491573
includes/filebackend/FileBackendMultiWrite.php
includes/parser/ParserOutput.php
includes/specials/SpecialAllMessages.php
tests/phpunit/includes/specials/SpecialSearchTest.php