changeset 3207:309f5570ba2b

wikiutil.escape: escapes ' too
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 06 Mar 2008 21:06:14 +0100
parents 79cd11198076
children 4f6d7765e1f5
files MoinMoin/wikiutil.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Thu Mar 06 18:49:10 2008 +0100
+++ b/MoinMoin/wikiutil.py	Thu Mar 06 21:06:14 2008 +0100
@@ -249,6 +249,7 @@
     s = s.replace(">", "&gt;")
     if quote:
         s = s.replace('"', "&quot;")
+        s = s.replace("'", "&#x27;")
     return s
 
 def clean_input(text, max_len=201):