aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Utils.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2012-01-27 08:31:23 +0700
committerGravatar Ugnich Anton2012-01-27 08:31:23 +0700
commita0e43fc8a853a71b6aa85f93843c1692a4d13708 (patch)
tree9790fb04141a30073038262ceb3546fdf4d1b678 /src/java/com/juick/http/www/Utils.java
parent6f4e181f0a03b4b190922bd5f8bd97fb9fdb206e (diff)
SAPE, NewMessage (GET)
Diffstat (limited to 'src/java/com/juick/http/www/Utils.java')
-rw-r--r--src/java/com/juick/http/www/Utils.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Utils.java b/src/java/com/juick/http/www/Utils.java
index cfa4484d..80577d04 100644
--- a/src/java/com/juick/http/www/Utils.java
+++ b/src/java/com/juick/http/www/Utils.java
@@ -101,6 +101,8 @@ public class Utils {
String ret = str;
ret = ret.replaceAll("<", "&lt;");
ret = ret.replaceAll(">", "&gt;");
+ ret = ret.replaceAll("'", "&apos;");
+ ret = ret.replaceAll("\"", "&quot;");
return str;
}