diff --git a/lib/controller/controller.py b/lib/controller/controller.py
index 3c7810f79..32632ca54 100644
--- a/lib/controller/controller.py
+++ b/lib/controller/controller.py
@@ -314,10 +314,7 @@ def start():
parameters = conf.parameters.keys()
# Order of testing list (last to first)
- if conf.forms or conf.data:
- orderList = (PLACE.URI, PLACE.GET, PLACE.POST)
- else:
- orderList = (PLACE.URI, PLACE.POST, PLACE.GET)
+ orderList = (PLACE.URI, PLACE.GET, PLACE.POST)
for place in orderList:
if place in parameters:
@@ -334,8 +331,8 @@ def start():
# Test Cookie header only if --level >= 2
condition |= (place == PLACE.COOKIE and conf.level < 2)
- # Test GET parameter in case --data and/or --forms used only if --level >= 3
- condition |= (place == PLACE.GET and (conf.data or conf.forms) and conf.level < 3)
+ # Test GET parameter in case --data only if --level >= 3
+ condition |= (place == PLACE.GET and conf.data and conf.level < 3)
condition &= not (place == PLACE.UA and intersect(USER_AGENT_ALIASES, conf.testParameter))
condition &= not (place == PLACE.REFERER and intersect(REFERER_ALIASES, conf.testParameter))
diff --git a/lib/core/dump.py b/lib/core/dump.py
index 1ede3c472..806046121 100644
--- a/lib/core/dump.py
+++ b/lib/core/dump.py
@@ -166,7 +166,7 @@ class Dump:
if isinstance(table, (list, tuple, set)):
table = table[0]
- maxlength = max(maxlength, len(normalizeUnicode(table)))
+ maxlength = max(maxlength, len(normalizeUnicode(table) or str(table)))
lines = "-" * (int(maxlength) + 2)
@@ -186,7 +186,7 @@ class Dump:
if isinstance(table, (list, tuple, set)):
table = table[0]
- blank = " " * (maxlength - len(normalizeUnicode(table)))
+ blank = " " * (maxlength - len(normalizeUnicode(table) or str(table)))
self.__write("| %s%s |" % (table, blank))
self.__write("+%s+\n" % lines)
diff --git a/xml/livetests.xml b/xml/livetests.xml
index e0a7a77af..e38dc9837 100644
--- a/xml/livetests.xml
+++ b/xml/livetests.xml
@@ -8,7 +8,7 @@
-
+
@@ -35,7 +35,7 @@
-
+
@@ -61,7 +61,7 @@
-
+
@@ -87,7 +87,7 @@
-
+
@@ -113,7 +113,7 @@
-
+
@@ -140,7 +140,7 @@
-
+
@@ -166,7 +166,7 @@
-
+
@@ -192,7 +192,7 @@
-
+
@@ -218,7 +218,7 @@
-
+
@@ -245,7 +245,7 @@
-
+
@@ -271,7 +271,7 @@
-
+
@@ -297,7 +297,7 @@
-
+