w3lib icon indicating copy to clipboard operation
w3lib copied to clipboard

Issue in safe_url_encoding

Open azierariel opened this issue 3 years ago • 0 comments

Hi,

I hope I find you well.

I found the following issue, not sure if it's a bug, but it didn't behave like this in the previous version (1.22).

Before on 1.22.0:

safe_url_string("foo://BAR/foobar") == "foo://BAR/foobar"

But now on 2.0.1:

safe_url_string("foo://BAR/foobar") == "foo://bar/foobar"

I understand that the domain is not case sensitive, but is this the desired behavior of the function?

Cheers,

azierariel avatar Aug 16 '22 09:08 azierariel