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 -1
View File
@@ -58,7 +58,8 @@ response.form_label_separator = myconf.get('forms.separator') or ''
from gluon.tools import Auth, Service, PluginManager
auth = Auth(db, host=myconf.get('host.name'))
# host names must be a list of allowed host names (glob syntax allowed)
auth = Auth(db, host_names=myconf.get('host.names'))
service = Service()
plugins = PluginManager()