cgi escape messages
This commit is contained in:
parent
4f08a04e17
commit
4713430ec8
1 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@ __copyright__ = "Copyright (c) Chris Oliver"
|
|||
__license__ = "GPL2"
|
||||
|
||||
|
||||
import cgi
|
||||
import os
|
||||
from ftplib import FTP
|
||||
from time import strftime
|
||||
|
@ -174,7 +175,7 @@ class Logbot(SingleServerIRCBot):
|
|||
try: msg = msg.replace("%channel%", event.target())
|
||||
except: pass
|
||||
msg = msg.replace("%color%", self.color(nm_to_n(event.source())))
|
||||
try: msg = msg.replace("%message%", event.arguments()[0])
|
||||
try: msg = msg.replace("%message%", cgi.escape(event.arguments()[0]))
|
||||
except: pass
|
||||
|
||||
return msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue