aquatic_http request url decode: reject some invalid data

This commit is contained in:
Joakim Frostegård 2020-07-03 17:54:59 +02:00
parent 919b846775
commit 15c75579da

View file

@ -142,6 +142,10 @@ impl Request {
processed.push(c);
}
}
} else {
return Err(anyhow::anyhow!(
"url decode: too few characters in '%{}'", part
))
}
}