From a7a0e5a7a7704e7360928491d1078451235073df Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 26 Mar 2006 07:59:33 +0000 Subject: [PATCH] When constructing the queries, we need to escape the % so we don't get missing characters --- printer_css.php | 1 + 1 file changed, 1 insertion(+) diff --git a/printer_css.php b/printer_css.php index a166ea5..4f614f1 100644 --- 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) . "')"; } -- 2.43.5