fixed issue 1755:IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore

This commit is contained in:
Massimo
2013-10-31 09:42:03 -05:00
parent 5b3b5b6821
commit 25f54356d4
2 changed files with 4 additions and 1 deletions

View File

@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.10.31.09.39.21
Version 2.7.4-stable+timestamp.2013.10.31.09.41.31

View File

@@ -403,6 +403,9 @@ def detect(agent):
break
except Exception, ex:
result['exception'] = ex
# hack to address https://code.google.com/p/web2py/issues/detail?id=1755
if not 'browser' in result:
result['browser'] = Storage({'name':'IE11'})
return result