mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: double-escaped single quotes in URLs
This commit is contained in:
parent
da91ab25cf
commit
543bc53598
2 changed files with 2 additions and 2 deletions
|
@ -458,7 +458,7 @@ test("urlAllowed", function() {
|
|||
allowed("//eviltrout.com/evil/trout", "allows protocol relative urls");
|
||||
|
||||
equal(urlAllowed("http://google.com/test'onmouseover=alert('XSS!');//.swf"),
|
||||
"http://google.com/test'onmouseover=alert('XSS!');//.swf",
|
||||
"http://google.com/test%27onmouseover=alert(%27XSS!%27);//.swf",
|
||||
"escape single quotes");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue