From fb3ba6b44a5a549c5d57643ad0af9dac67cf2de9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 17 Sep 2006 18:52:25 +0000 Subject: [PATCH] r1170: Need to escape the % in %1$s [process_custom_fields()] --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 45a548f..9b730a2 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -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; -- 2.22.5