Fix BEAUTIFY trying to display uploaded file contents

Fixes #1717
This commit is contained in:
Leonel Câmara
2017-08-06 17:01:27 +01:00
committed by GitHub
parent ebc614bf91
commit 90e20a4f39
+1 -1
View File
@@ -2431,7 +2431,7 @@ class BEAUTIFY(DIV):
if level == 0: if level == 0:
return return
for c in self.components: 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: if c.value:
components.append(c.value) components.append(c.value)
if hasattr(c, 'xml') and callable(c.xml): if hasattr(c, 'xml') and callable(c.xml):