Escape the player's name when printing it into HTML.
Non-alphanumeric characters in names may eventually be possible.
This commit is contained in:
parent
3d7abba670
commit
d67561aa42
3 changed files with 20 additions and 20 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import html
|
||||
import rlgall
|
||||
|
||||
playerdir = "/var/www/lighttpd/scoring/players/"
|
||||
|
|
@ -26,7 +27,7 @@ if not namelist:
|
|||
else:
|
||||
sys.stdout.write("<ul>\n")
|
||||
for name in namelist:
|
||||
sys.stdout.write(linkstr.format(name))
|
||||
sys.stdout.write(linkstr.format(html.escape(name)))
|
||||
sys.stdout.write("</ul>\n")
|
||||
|
||||
sys.stdout.write(rlgall.pend)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue