r1170: Need to escape the % in %1$s [process_custom_fields()]
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 17 Sep 2006 18:52:25 +0000 (18:52 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 17 Sep 2006 18:52:25 +0000 (18:52 +0000)
includes/functions.php

index 45a548fe164d72fc66de38fef521c6e7486b2d69..9b730a2c0b61dda237dc20604f0a4bb18b33548b 100755 (executable)
@@ -433,7 +433,7 @@ function process_custom_fields($bugid, $msg, $errorbox = false, $inputdata = arr
                return;
        }
        
-       $query = "REPLACE INTO " . TABLE_PREFIX . "bugvaluefill (bugid, " . implode(', ', $fieldbuild) . ") VALUES (%1$s, " . implode(', ', $fieldvalue) . ")";
+       $query = "REPLACE INTO " . TABLE_PREFIX . "bugvaluefill (bugid, " . implode(', ', $fieldbuild) . ") VALUES (%1\$s, " . implode(', ', $fieldvalue) . ")";
        if ($bugid === null)
        {
                return $query;