Attempt to patch a possible message injection hole.

This commit is contained in:
Sean B. Palmer
2011-09-05 17:46:17 +01:00
parent 66edd83372
commit 2d3009ccb1
9 changed files with 101 additions and 28 deletions

View File

@@ -81,7 +81,7 @@ def o(phenny, input):
return phenny.reply(msg)
if not o.services.has_key(command):
return phenny.reply('Sorry, no such service. See %s' % o.serviceURI)
return phenny.reply('Service not found in %s' % o.serviceURI)
if hasattr(phenny.config, 'external'):
default = phenny.config.external.get('*')