diff --git a/modules/plugin_dbui/helper.py b/modules/plugin_dbui/helper.py
index 2a78e5329a70ceca261d00ad339be1c52915cda0..d3629c78ca06e3d85c24b1fae19c34c9a04d730c 100644
--- a/modules/plugin_dbui/helper.py
+++ b/modules/plugin_dbui/helper.py
@@ -442,9 +442,11 @@ def get_versions():
             mathjax = m.group(1)
 
     # web2py
-    li = [str(el) for el in current.request.env.web2py_version if isinstance(el, int)]
-    web2py = '.'.join(li)
-    
+    web2py = ''
+    m = re.match('\d+\.\d+\.\d+', current.request.env.web2py_version)
+    if m:
+        web2py = m.group()
+
     # version of the application
     myapp = current.T("unknown")