When constructing the queries, we need to escape the % so we don't get missing characters
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 26 Mar 2006 07:59:33 +0000 (07:59 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 26 Mar 2006 07:59:33 +0000 (07:59 +0000)
printer_css.php

index a166ea5fa2fe19c0e1a44ae32b521c8b8fa5d884..4f614f142eecd2a067d3988059855260a2a23b84 100644 (file)
@@ -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) . "')";
                                        }