dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de808f5
)
Revert "Only pass strings to mysqli::real_escape_string"
author
Chad
<chadh@wikimedia.org>
Mon, 10 Feb 2014 19:58:22 +0000
(19:58 +0000)
committer
Chad
<chadh@wikimedia.org>
Mon, 10 Feb 2014 19:58:22 +0000
(19:58 +0000)
hhvm already has a patch in master for fixing this, making the workaround unnecessary
This reverts commit
de808f57a90c9c6f7bc4dbc4e4b544a07e0daa0f
.
Change-Id: I504e5bd5025ec12430ce670e05da0158b06822c9
includes/db/DatabaseMysqli.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseMysqli.php
b/includes/db/DatabaseMysqli.php
index
290de1f
..
d41f3e4
100644
(file)
--- a/
includes/db/DatabaseMysqli.php
+++ b/
includes/db/DatabaseMysqli.php
@@
-274,10
+274,6
@@
class DatabaseMysqli extends DatabaseMysqlBase {
* @return string
*/
protected function mysqlRealEscapeString( $s ) {
- if ( is_integer( $s ) ) {
- // HHVM fatals passing numbers to real_escape_string
- $s = (string) $s;
- }
return $this->mConn->real_escape_string( $s );
}