From 848d0acd7ef59c808511719fbea553a23ec3f662 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 9 Feb 2009 17:17:00 -0700 Subject: [PATCH] Correctly escape URLs. --- imp/fetchmailprefs.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/imp/fetchmailprefs.php b/imp/fetchmailprefs.php index f3535f5c3..ba2d268ea 100644 --- a/imp/fetchmailprefs.php +++ b/imp/fetchmailprefs.php @@ -187,9 +187,11 @@ if (empty($actionID)) { Prefs_UI::generateHeader(null, $chunk); Horde::addScriptFile('prototype.js', 'horde', true); Horde::addScriptFile('fetchmailprefs.js', 'imp', true); + +$charset = NLS::getCharset(); IMP::addInlineScript(array( - 'ImpFetchmailprefs.fetchurl = \'' . $fetch_url . '\'', - 'ImpFetchmailprefs.prefsurl = \'' . $prefs_url . '\'' + 'ImpFetchmailprefs.fetchurl = ' . Horde_Serialize($fetch_url, SERIALIZE_JSON, $charset), + 'ImpFetchmailprefs.prefsurl = ' . Horde_Serialize($prefs_url, SERIALIZE_JSON, $charset) )); echo $t->fetch(IMP_TEMPLATES . '/fetchmail/fetchmailprefs.html'); -- 2.11.0