From 4bcaf6f2f431cd2bf889c04fc2505cdcf5096ba1 Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Wed, 12 Nov 2008 15:20:04 -0800 Subject: [PATCH] Putting back 452979, wasn't the problem. --- browser/base/content/browser.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index c75db513d1f..ea744033f46 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -2095,6 +2095,11 @@ function losslessDecodeURI(aURI) { encodeURIComponent); } catch (e) {} + // Encode invisible characters (invisible control characters, soft hyphen, + // zero-width space, BOM, line separator, paragraph separator) (bug 452979) + value = value.replace(/[\v\x0c\x1c\x1d\x1e\x1f\u00ad\u200b\ufeff\u2028\u2029]/g, + encodeURIComponent); + // Encode bidirectional formatting characters. // (RFC 3987 sections 3.2 and 4.1 paragraph 6) value = value.replace(/[\u200e\u200f\u202a\u202b\u202c\u202d\u202e]/g,