LibWeb: Replace "+" in value with a space while decoding search params

This commit is contained in:
Alisson Lauffer
2024-07-28 16:23:59 -03:00
committed by Andreas Kling
parent 9c72fc9642
commit d38b28b57b
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
key 'key'
value 'value1 value2'

View File

@@ -0,0 +1,10 @@
<script src="../include.js"></script>
<script>
test(() => {
const params = new URLSearchParams('key=value1+value2');
for (const [key, value] of params) {
println(`key '${key}'`);
println(`value '${value}'`);
}
});
</script>