From b4380c08374a6ad23bfe8807b232a2d2153c880a Mon Sep 17 00:00:00 2001 From: thomasb Date: Thu, 10 Aug 2006 07:07:43 +0000 Subject: Fixed charset problems with folder renaming git-svn-id: https://svn.roundcube.net/trunk@305 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/common.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roundcubemail/program/js/common.js') diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index 7ac3dc807..b0dc5564a 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -343,6 +343,13 @@ function find_in_array() } +// make a string URL safe +function urlencode(str) +{ + return window.encodeURI ? encodeURI(str).replace(/&/g, '%26') : escape(str); +} + + // get any type of html objects by id/name function rcube_find_object(id, d) { -- cgit v1.2.3