RetroFed Forum
Your home away from modern life.
Testing a URL bug
Post Reply
AuthorMessage
NeatNit discuss.tchncs.de NeatNit@discuss.tchncs.de
Joined: 2024-01-05
Quote

The following links should all have the query string ?P=5%B02%27.

example.com/query?P=5%B02%27

example.com/query?P=5�2'

link

www.example.com/query?P=5%B02%27

www.example.com/query?P=5�2'

link

http://www.example.com/query?P=5%EF%BF%BD2%27

http://www.example.com/query?P=5�2'

link

https://www.example.com/query?P=5%EF%BF%BD2%27

https://www.example.com/query?P=5�2'

link

4   Original
NeatNit discuss.tchncs.de NeatNit@discuss.tchncs.de
Joined: 2024-01-05
#2 · Quote Reply

https://github.com/LemmyNet/lemmy/issues/6613

2
NeatNit discuss.tchncs.de NeatNit@discuss.tchncs.de
Joined: 2024-01-05
#3 · (edited) Quote Reply

https://example.com/query?P=%EF%BF%BD%27hello%27

https://example.com/query?P=�'hello'

link

1
NeatNit discuss.tchncs.de NeatNit@discuss.tchncs.de
Joined: 2024-01-05
#4 · (edited) Quote Reply

https://example.com/query?P=%EF%BF%BD%27hello%27 https://example.com/query?P=�'hello' link

Trying to recreate the weird smart quote conversion.

www.gcmap.com/mapui?P=5%B02%2751.59%22N+9%B07%2723.26%22W-28%B017%277.68%22N+121%B038%2717.31%22E&MS=wls&DU=mi with http: becomes:

http://www.gcmap.com/mapui?P=5%EF%BF%BD2%2751.59%22N+9%EF%BF%BD7%2723.26%22W-28%EF%BF%BD17%277.68%22N+121%EF%BF%BD38%2717.31%22E&MS=wls&DU=mi

Edit: oh, it's fine.... maybe it's a kbin issue?

1
NeatNit discuss.tchncs.de NeatNit@discuss.tchncs.de
Joined: 2024-01-05
#5 · Quote Reply

Trying to recreate the weird smart quote conversion. www.gcmap.com/mapui?P=5%B02%2751.59%22N+9%B07%2723.26%22W-28%B017%277.68%22N+121%B038%2717.31%22E&MS=wls&DU=mi with http: becomes: http://www.gcmap.com/mapui?P=5%EF%BF%BD2%2751.59%22N+9%EF%BF%BD7%2723.26%22W-28%EF%BF%BD17%277.68%22N+121%EF%BF%BD38%2717.31%22E&MS=wls&DU=mi Edit: oh, it's fine.... maybe it's a kbin issue?

For context, in the original post, this was the result:

http://www.gcmap.com/mapui?P=5%EF%BF%BD2%26%238242%3B51.59%26%238243%3BN+9%EF%BF%BD7%26%238242%3B23.26%26%238243%3BW+-+28%EF%BF%BD17%26%238242%3B7.68%26%238243%3BN+121%EF%BF%BD38%26%238242%3B17.31%26%238243%3BE%0D%0A&MS=bm&DU=mi

Note that single-quotes %27 became %26%238242%3B which encodes ′ which is an HTML entity for U+2032 ′, i.e. smart quotes but broken all the way to hell and back.

1
NeatNit discuss.tchncs.de NeatNit@discuss.tchncs.de
Joined: 2024-01-05
#6 · Quote Reply

https://example.com/test

www.example.com/test?utm_source=abc

1
Post Reply
Back to top