Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0482e02

Browse files
committed
minor optimization
1 parent 4f346ea commit 0482e02

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

lib/controller/controller.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
from lib.core.common import getUnicode
2222
from lib.core.common import paramToDict
2323
from lib.core.common import parseTargetUrl
24+
from lib.core.common import popValue
25+
from lib.core.common import pushValue
2426
from lib.core.common import readInput
2527
from lib.core.data import conf
2628
from lib.core.data import kb
@@ -208,7 +210,14 @@ def start():
208210
# a warning message to the user in case the page is not stable
209211
checkStability()
210212

211-
for place in conf.parameters.keys():
213+
# Do a little prioritization reorder of a testable parameter list
214+
parameters = conf.parameters.keys()
215+
for place in ('POST', 'GET'):
216+
if place in parameters:
217+
parameters.remove(place)
218+
parameters.insert(0, place)
219+
220+
for place in parameters:
212221
if not conf.paramDict.has_key(place):
213222
continue
214223

0 commit comments

Comments
 (0)