@@ -1127,7 +1127,7 @@ def parseTargetDirect():
11271127
11281128def parseTargetUrl ():
11291129 """
1130- Parse target url and set some attributes into the configuration singleton.
1130+ Parse target URL and set some attributes into the configuration singleton.
11311131 """
11321132
11331133 if not conf .url :
@@ -1165,14 +1165,14 @@ def parseTargetUrl():
11651165 _ = None
11661166
11671167 if any ((_ is None , re .search (r'\s' , conf .hostname ), '..' in conf .hostname , conf .hostname .startswith ('.' ))):
1168- errMsg = "invalid target url "
1168+ errMsg = "invalid target URL "
11691169 raise SqlmapSyntaxException (errMsg )
11701170
11711171 if len (hostnamePort ) == 2 :
11721172 try :
11731173 conf .port = int (hostnamePort [1 ])
11741174 except :
1175- errMsg = "invalid target url "
1175+ errMsg = "invalid target URL "
11761176 raise SqlmapSyntaxException (errMsg )
11771177 elif conf .scheme == "https" :
11781178 conf .port = 443
@@ -1186,13 +1186,13 @@ def parseTargetUrl():
11861186 conf .url = conf .url .replace (URI_QUESTION_MARKER , '?' )
11871187
11881188 if not conf .referer and intersect (REFERER_ALIASES , conf .testParameter , True ):
1189- debugMsg = "setting the HTTP Referer header to the target url "
1189+ debugMsg = "setting the HTTP Referer header to the target URL "
11901190 logger .debug (debugMsg )
11911191 conf .httpHeaders = filter (lambda (key , value ): key != HTTP_HEADER .REFERER , conf .httpHeaders )
11921192 conf .httpHeaders .append ((HTTP_HEADER .REFERER , conf .url ))
11931193
11941194 if not conf .host and intersect (HOST_ALIASES , conf .testParameter , True ):
1195- debugMsg = "setting the HTTP Host header to the target url "
1195+ debugMsg = "setting the HTTP Host header to the target URL "
11961196 logger .debug (debugMsg )
11971197 conf .httpHeaders = filter (lambda (key , value ): key != HTTP_HEADER .HOST , conf .httpHeaders )
11981198 conf .httpHeaders .append ((HTTP_HEADER .HOST , getHostHeader (conf .url )))
@@ -2120,7 +2120,7 @@ def _(match):
21202120 return char if char in charset else match .group (0 )
21212121 result = value
21222122 if plusspace :
2123- result = result .replace ("+" , " " ) # plus sign has a special meaning in url encoded data (hence the usage of urllib.unquote_plus in convall case)
2123+ result = result .replace ("+" , " " ) # plus sign has a special meaning in URL encoded data (hence the usage of urllib.unquote_plus in convall case)
21242124 result = re .sub ("%([0-9a-fA-F]{2})" , _ , result )
21252125
21262126 if isinstance (result , str ):
@@ -2147,7 +2147,7 @@ def urlencode(value, safe="%&=", convall=False, limit=False, spaceplus=False):
21472147 safe = ""
21482148
21492149 # corner case when character % really needs to be
2150- # encoded (when not representing url encoded char)
2150+ # encoded (when not representing URL encoded char)
21512151 # except in cases when tampering scripts are used
21522152 if all (map (lambda x : '%' in x , [safe , value ])) and not kb .tamperFunctions :
21532153 value = re .sub ("%(?![0-9a-fA-F]{2})" , "%25" , value )
@@ -3119,7 +3119,7 @@ def randomizeParameterValue(value):
31193119
31203120def asciifyUrl (url , forceQuote = False ):
31213121 """
3122- Attempts to make a unicode url usuable with ``urllib/urllib2``.
3122+ Attempts to make a unicode URL usuable with ``urllib/urllib2``.
31233123
31243124 More specifically, it attempts to convert the unicode object ``url``,
31253125 which is meant to represent a IRI, to an unicode object that,
@@ -3232,7 +3232,7 @@ def geturl(self):
32323232 try :
32333233 forms = ParseResponse (response , backwards_compat = False )
32343234 except ParseError :
3235- warnMsg = "badly formed HTML at the given url ('%s'). Going to filter it" % url
3235+ warnMsg = "badly formed HTML at the given URL ('%s'). Going to filter it" % url
32363236 logger .warning (warnMsg )
32373237 response .seek (0 )
32383238 filtered = _ ("" .join (re .findall (FORM_SEARCH_REGEX , response .read ())), response .geturl ())
@@ -3279,7 +3279,7 @@ def geturl(self):
32793279 target = (url , method , data , conf .cookie )
32803280 retVal .add (target )
32813281 else :
3282- errMsg = "there were no forms found at the given target url "
3282+ errMsg = "there were no forms found at the given target URL "
32833283 if raise_ :
32843284 raise SqlmapGenericException (errMsg )
32853285 else :
0 commit comments