actix / actix/actix-web

Wrong parsing of short path arguments with symbols that should be escaped

Offen
#2,844 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
A-router needs-investigation
Vorherrschende Sprache
Rust
Sterne
24.8k
Forks
1.9k
Ø Merge
23 Std. 10 Min.
Gemergte PRs (30 T.)
26

Beschreibung

I have endpoints look like `http://127.0.0.1:3050/smth1/{arg1}/smth2/{arg2})`
If you want to have `arg1=.` and pass it through web form, the generated URL looks like
`curl --request GET --url http://127.0.0.1:3050/smth1/smth2/{arg2}`, so it just cuts this argument.
The same behaviour if I put `%2E` (escaped dot) as the parameter.
So, I can't pass the dot as the argument through the web page at all.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.