diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/common.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/lib/common.js b/js/lib/common.js index 6481c68..c365e53 100644 --- a/js/lib/common.js +++ b/js/lib/common.js @@ -34,7 +34,12 @@ var unescapeString = function(s) { }; var normalizeURI = function(uri) { - return encodeURI(decodeURI(uri)); + try { + return encodeURI(decodeURI(uri)); + } + catch(err) { + return uri; + } }; var replaceUnsafeChar = function(s) { |