@@ -818,21 +818,23 @@ def _adjustParameter(paramString, parameter, newValue):
818818 if conf .rParam :
819819 def _randomizeParameter (paramString , randomParameter ):
820820 retVal = paramString
821- match = re .search (" %s=(?P<value>[^&;]+)" % re .escape (randomParameter ), paramString )
821+ match = re .search (r"(\A|\b) %s=(?P<value>[^&;]+)" % re .escape (randomParameter ), paramString )
822822 if match :
823823 origValue = match .group ("value" )
824- retVal = re .sub (" %s=[^&;]+" % re .escape (randomParameter ), "%s=%s" % (randomParameter , randomizeParameterValue (origValue )), paramString )
824+ retVal = re .sub (r"(\A|\b) %s=[^&;]+" % re .escape (randomParameter ), "%s=%s" % (randomParameter , randomizeParameterValue (origValue )), paramString )
825825 return retVal
826826
827827 for randomParameter in conf .rParam :
828- for item in (PLACE .GET , PLACE .POST , PLACE .COOKIE ):
828+ for item in (PLACE .GET , PLACE .POST , PLACE .COOKIE , PLACE . URI , PLACE . CUSTOM_POST ):
829829 if item in conf .parameters :
830830 if item == PLACE .GET and get :
831831 get = _randomizeParameter (get , randomParameter )
832- elif item == PLACE .POST and post :
832+ elif item in ( PLACE .POST , PLACE . CUSTOM_POST ) and post :
833833 post = _randomizeParameter (post , randomParameter )
834834 elif item == PLACE .COOKIE and cookie :
835835 cookie = _randomizeParameter (cookie , randomParameter )
836+ elif item == PLACE .URI and uri :
837+ uri = _randomizeParameter (uri , randomParameter )
836838
837839 if conf .evalCode :
838840 delimiter = conf .paramDel or DEFAULT_GET_POST_DELIMITER
0 commit comments