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:
984537d
)
pass unescaped query string to Database::insert(), double escaping is not needed
author
Domas Mituzas
<midom@users.mediawiki.org>
Thu, 30 Sep 2004 14:40:06 +0000
(14:40 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Thu, 30 Sep 2004 14:40:06 +0000
(14:40 +0000)
includes/Profiling.php
patch
|
blob
|
history
diff --git
a/includes/Profiling.php
b/includes/Profiling.php
index
48129ec
..
cf0cc42
100755
(executable)
--- a/
includes/Profiling.php
+++ b/
includes/Profiling.php
@@
-179,11
+179,12
@@
class Profiler
$dbw =& wfGetDB( DB_MASTER );
$profiling = $dbw->tableName( 'profiling' );
- $name = substr($dbw->strencode( $name ),0,255);
+ $name = substr($name,0,255);
+ $encname = $dbw->strencode($name);
$sql = "UPDATE $profiling ".
"SET pf_count=pf_count+{$eventCount}, ".
"pf_time=pf_time + {$timeSum} ".
- "WHERE pf_name='{$name}'";
+ "WHERE pf_name='{$
enc
name}'";
$dbw->query($sql);
$rc = $dbw->affectedRows();