To be more spesific:

"Following the syntax specifications in *RFC
1808*<http://tools.ietf.org/html/rfc1808.html>,
urlparse recognizes a netloc only if it is properly introduced by '//'.
Otherwise the input is presumed to be a relative URL and thus to start with
a path component."

6 Aralık 2011 04:32 tarihinde Yaşar Arabacı <[email protected]> yazdı:

> Maybe this is about second example in here:
> http://docs.python.org/library/urlparse.html#urlparse.urlparse ?
>
>
> 2011/12/6 Luciano Pacheco <[email protected]>
>
>> On Tue, Dec 6, 2011 at 9:00 AM, Cal Leeming [Simplicity Media Ltd] <
>> [email protected]> wrote:
>>
>>> Not sure if this should have a bug ticket raised or not.. wanted to get
>>> core devs thoughts.
>>>
>>>
>>> _redir = "//your/path/with/an/extra/slash/for/whatever/reason"
>>> HttpResponseRedirect(_redir)
>>> returns "Location:
>>> http://your/path/with/an/extra/slash/for/whatever/reason";
>>>
>>
>> _redir var has an ambiguous string.
>>
>> Is it malformed, missing the "protocol:" like "http:" or "https:" . Or
>> "malformed" in URI's path part?
>>
>> So, it seems not obvious to handle it. Let's refuse the temptation to
>> guess. ;-)
>>
>> Regards,
>> --
>> Luciano Pacheco
>> blog.lucmult.com.br
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/django-developers?hl=en.
>>
>
>
>
> --
> http://yasar.serveblog.net/
>
>


-- 
http://yasar.serveblog.net/

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to