fixed Host header vulnerability #1196

This commit is contained in:
mdipierro committed 2016-03-21 01:15:46 -05:00
1 parent d1094e7b0c
commit bd6115ad62
4 files changed
+26 -6

No files matched your search

+2 -2
View File
@@ -69,8 +69,8 @@ class AppConfigDict(dict):
return False
elif value.isdigit() or (value[0]=='-' and value[1:].isdigit()):
return int(value)
elif ', ' in value:
return value.split(', ')
elif ',' in value:
return map(lambda x:x.strip(),value.split(','))
else:
try:
return float(value)