[Zope] what is wrong with this python code?

Yurj yurj at alfa.it
Fri Nov 7 14:44:38 EST 2003


if query.find('&page=') != -1:
query = query[:query.find('&page=')]

(aim to strip out all after &page= in a query string)

it don't works if query (pass as parameter, it is HTTP_QUERY) has %3A
caracters *ex: when you have field:string in a web form*

why find gives error? :(

________________________________________________
Message sent using ALFANET Caorle WEBMAIL 1.0




More information about the Zope mailing list