mirror of
https://github.com/discourse/discourse.git
synced 2025-02-01 16:04:17 +08:00
Merge pull request #2447 from techAPJ/typo-patch-1
Fix typo in XSS test
This commit is contained in:
commit
abadcace39
|
@ -5,7 +5,7 @@ describe DiscourseDiff do
|
||||||
|
|
||||||
describe "inline_html" do
|
describe "inline_html" do
|
||||||
|
|
||||||
it "doest not lead to XSS" do
|
it "does not lead to XSS" do
|
||||||
a = "<test>start</test>"
|
a = "<test>start</test>"
|
||||||
b = "<test>end</test>"
|
b = "<test>end</test>"
|
||||||
prev = "<div>#{CGI::escapeHTML(a)}</div>"
|
prev = "<div>#{CGI::escapeHTML(a)}</div>"
|
||||||
|
@ -132,4 +132,3 @@ describe DiscourseDiff do
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user