public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
fix sanitize test

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2747 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Mon Feb 19 00:27:49 -0800 2007
commit  766a3050f8030fe06b94e563cdafb838e1ed17ce
tree    7f87a8a5265a2f4d324d1e67a6b8feca5f3e752d
parent  e133010ec94bff28db35e30825b536dd060e368b
...
139
140
141
142
 
143
144
145
...
139
140
141
 
142
143
144
145
0
@@ -139,7 +139,7 @@ context "Home Section Feed" do
0
   specify "should sanitize content" do
0
     text = @contents.first.get_text.to_s.strip
0
     evil = "<script>hi</script><a onclick=\"foo\" href=\"#\">linkage</a></p>"
0
- good = "<a href='#'>linkage</a></p>"
0
+ good = %(<a href="#">linkage</a></p>)
0
     assert !text.ends_with(CGI::escapeHTML(evil)), "'#{text.inspect}' was not sanitized"
0
     assert text.ends_with(CGI::escapeHTML(good)), "'#{text.inspect}' was not sanitized"
0
   end

Comments

    No one has commented yet.