minor update

This commit is contained in:
Miroslav Stampar 2010-09-23 14:07:23 +00:00
parent 927ad7bf13
commit 13bb3a6212
2 changed files with 4 additions and 2 deletions

View File

@ -100,7 +100,7 @@ class Agent:
elif parameter == "User-Agent":
retValue = value.replace(value, newValue)
elif parameter == "URI":
retValue = value.replace('*', ' %s ' % newValue.replace(value,''))
retValue = value.replace("*", " %s " % newValue.replace(value, str()))
else:
paramString = conf.parameters[place]

View File

@ -293,7 +293,7 @@ class Connect:
ua = None
page = None
pageLength = None
uri = conf.url
uri = None
raise404 = place != "URI"
if not place:
@ -313,6 +313,8 @@ class Connect:
if "URI" in conf.parameters:
uri = conf.url if place != "URI" or not value else value
else:
uri = conf.url
if conf.safUrl and conf.saFreq > 0:
kb.queryCounter += 1