Only pass strings to mysqli::real_escape_string
authorErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 10 Feb 2014 19:03:10 +0000 (11:03 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 10 Feb 2014 19:09:57 +0000 (11:09 -0800)
commitde808f57a90c9c6f7bc4dbc4e4b544a07e0daa0f
tree7ac896f9893721dd7ac4625ef3aec6dfae8d0b9d
parentdfd481e113f2cf5aaa305362e0131c4ed998290a
Only pass strings to mysqli::real_escape_string

HHVM will throw a fatal error when passing integer and other non-string
values to mysqli::real_escape_string.  A bug has been filed against
hhvm as https://github.com/facebook/hhvm/issues/1782.

Change-Id: I80eccbe8d872e74b8efc9b8c8f37ebce756bdcee
includes/db/DatabaseMysqli.php