https://src.bluestatic.org
/
isso.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44af191
)
When constructing the queries, we need to escape the % so we don't get missing characters
author
Robert Sesek <rsesek@bluestatic.org>
Sun, 26 Mar 2006 07:59:33 +0000
(07:59 +0000)
committer
Robert Sesek <rsesek@bluestatic.org>
Sun, 26 Mar 2006 07:59:33 +0000
(07:59 +0000)
printer_css.php
patch
|
blob
|
history
diff --git
a/printer_css.php
b/printer_css.php
index a166ea5fa2fe19c0e1a44ae32b521c8b8fa5d884..4f614f142eecd2a067d3988059855260a2a23b84 100644
(file)
--- a/
printer_css.php
+++ b/
printer_css.php
@@
-519,6
+519,7
@@
class Printer_CSS
// no matching, it's new
else
{
+ $value = str_replace('%', '%%', $value);
$deletes[] = "%3\$s = '" . $this->escape($descriptor . $sel) . "' AND %4\$s = '" . $this->escape($prop) . "'";
$queries[] = "INSERT INTO %1\$s (%2\$s, %3\$s, %4\$s, %5\$s) VALUES (%6\$d, '" . $this->escape($descriptor . $sel) . "', '" . $this->escape($prop) . "', '" . $this->escape($value) . "')";
}