From acac9dd94f190901a7ffb5c19045427044910ed5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 15 Mar 2010 19:06:56 +0100 Subject: [PATCH] Use encode/decodeURIComponent(). --- horde/js/dhtmlHistory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/horde/js/dhtmlHistory.js b/horde/js/dhtmlHistory.js index 3156d783b..5ce30f95c 100644 --- a/horde/js/dhtmlHistory.js +++ b/horde/js/dhtmlHistory.js @@ -199,7 +199,7 @@ Horde.dhtmlHistory = { if (Prototype.Browser.WebKit) { return this.getSafariState(); } else { - return this.removeHash(unescape(location.hash)); + return this.removeHash(decodeURIComponent(location.hash)); } }, @@ -230,7 +230,7 @@ Horde.dhtmlHistory = { // Save this as our current location and change the browser location this.currentLocation = newLoc; - this.setLocation(escape(newLoc)); + this.setLocation(encodeURIComponent(newLoc)); // Change the hidden iframe's location if on IE if (Prototype.Browser.IE) { @@ -357,7 +357,7 @@ Horde.dhtmlHistory = { } // Get the new location - this.setLocation(escape(newLoc)); + this.setLocation(encodeURIComponent(newLoc)); // Notify listeners of the change this.fireHistoryEvent(newLoc); -- 2.11.0