[Zope3-dev] Re: [Nuxeo-checkins] r30260 - in CPSSkins/trunk: . skins/cpsskins_cmf

Jean-Marc Orliaguet jmo at ita.chalmers.se
Sun Dec 4 12:45:27 EST 2005


Florent Guillaume wrote:

> Redirecting to a relative url is illegal in the HTTP spec. You must  
> always use a fully qualified url.
>
> Florent
>
>> +    redirect_url = REQUEST['HTTP_REFERER'] or '.'
>> +    RESPONSE.redirect(redirect_url)
>

OK, but can you raise that one zope3-dev? It is used all over the place 
in the zope3 code as a standard way or doing redirection, just do a grep on:

$ grep -r  response.redirect Zope3/src

I checked the redirect() method in publisher/http.py and it just sets 
the Location to what it is told to ('.', 'somemethod.html')

/JM


More information about the Zope3-dev mailing list