CSS prevention changed to a oneliner
This commit is contained in:
parent
1649dab547
commit
d03506dd2a
12
blogthon.cgi
12
blogthon.cgi
@ -54,12 +54,12 @@ if not ctext: ctext = ""
|
|||||||
# Comment to commit?
|
# Comment to commit?
|
||||||
if cname and ctext and ctitle:
|
if cname and ctext and ctitle:
|
||||||
# Prevent XSS hacks
|
# Prevent XSS hacks
|
||||||
cname = cname.replace("<", "<")
|
cname = cname.replace("<", "<") \
|
||||||
cname = cname.replace(">", ">")
|
.replace(">", ">") \
|
||||||
cname = cname.replace("\"", """)
|
.replace("\"", """)
|
||||||
ctext = ctext.replace("<", "<")
|
ctext = ctext.replace("<", "<") \
|
||||||
ctext = ctext.replace(">", ">")
|
.replace(">", ">") \
|
||||||
ctext = ctext.replace("\"", """)
|
.replace("\"", """)
|
||||||
|
|
||||||
# Add comment
|
# Add comment
|
||||||
comments_file = glob.glob(entries_dir + ctitle + '.comments')
|
comments_file = glob.glob(entries_dir + ctitle + '.comments')
|
||||||
|
Loading…
Reference in New Issue
Block a user