summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-05-11 13:14:37 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-05-11 13:14:59 (GMT)
commit9080e2b826e8cffaa56af96d6b670c219e78424f (patch)
treed65ef12a6987e3dc32331a75f9e3ab01fdfc3de9 /Swift/QtUI/ChatSnippet.h
parent73ae80d0ed8895bb2bad7b9f627d0921ddb2ecb2 (diff)
downloadswift-9080e2b826e8cffaa56af96d6b670c219e78424f.zip
swift-9080e2b826e8cffaa56af96d6b670c219e78424f.tar.bz2
Don't allow form results to get interpreted as HTML
Diffstat (limited to 'Swift/QtUI/ChatSnippet.h')
-rw-r--r--Swift/QtUI/ChatSnippet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/ChatSnippet.h b/Swift/QtUI/ChatSnippet.h
index f79f487..92a6837 100644
--- a/Swift/QtUI/ChatSnippet.h
+++ b/Swift/QtUI/ChatSnippet.h
@@ -34,6 +34,7 @@ namespace Swift {
result.replace("%time%", "%&#37;time&#37;");
result.replace("%shortTime%", "%&#37;shortTime&#37;");
result.replace("%userIconPath%", "&#37;userIconPath&#37;");
+ result.replace("\t", " ");
result.replace(" ", "&nbsp;&nbsp;");
return result;
}