From 90e20a4f393fe5bdced41ad30c02f8dbfd8bc34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonel=20C=C3=A2mara?= Date: Sun, 6 Aug 2017 17:01:27 +0100 Subject: [PATCH] Fix BEAUTIFY trying to display uploaded file contents Fixes #1717 --- gluon/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/html.py b/gluon/html.py index f5383109..73eae9b8 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -2431,7 +2431,7 @@ class BEAUTIFY(DIV): if level == 0: return for c in self.components: - if hasattr(c, 'value') and not callable(c.value): + if hasattr(c, 'value') and not callable(c.value) and not isinstance(c, cgi.FieldStorage): if c.value: components.append(c.value) if hasattr(c, 'xml') and callable(c.xml):