fixed Host header vulnerability #1196
This commit is contained in:
1 parent
d1094e7b0c
commit
bd6115ad62
4 files changed
+26
-6
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user