@@ -580,15 +580,16 @@ def _randomizeParameter(paramString, randomParameter):
580580 retVal = re .sub ("%s=[^&;]+" % randomParameter , "%s=%s" % (randomParameter , randomizeParameterValue (origValue )), paramString )
581581 return retVal
582582
583- for item in [PLACE .GET , PLACE .POST , PLACE .COOKIE ]:
584- if item in conf .parameters :
585- origValue = conf .parameters [item ]
586- if item == PLACE .GET and get :
587- get = _randomizeParameter (get , conf .rParam )
588- elif item == PLACE .POST and post :
589- post = _randomizeParameter (post , conf .rParam )
590- elif item == PLACE .COOKIE and cookie :
591- cookie = _randomizeParameter (cookie , conf .rParam )
583+ for randomParameter in conf .rParam :
584+ for item in [PLACE .GET , PLACE .POST , PLACE .COOKIE ]:
585+ if item in conf .parameters :
586+ origValue = conf .parameters [item ]
587+ if item == PLACE .GET and get :
588+ get = _randomizeParameter (get , randomParameter )
589+ elif item == PLACE .POST and post :
590+ post = _randomizeParameter (post , randomParameter )
591+ elif item == PLACE .COOKIE and cookie :
592+ cookie = _randomizeParameter (cookie , randomParameter )
592593
593594 get = urlencode (get , limit = True )
594595 post = urlencode (post )
0 commit comments