aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/uri_string.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stdlib/src/uri_string.erl')
-rw-r--r--lib/stdlib/src/uri_string.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/src/uri_string.erl b/lib/stdlib/src/uri_string.erl
index 8723d3f183..a4fd9c66f4 100644
--- a/lib/stdlib/src/uri_string.erl
+++ b/lib/stdlib/src/uri_string.erl
@@ -1806,6 +1806,8 @@ get_separator(_, Acc) when length(Acc) =:= 0 ->
get_separator([], _Acc) ->
"&";
get_separator([{separator, amp}], _Acc) ->
+ "&";
+get_separator([{separator, escaped_amp}], _Acc) ->
"&";
get_separator([{separator, semicolon}], _Acc) ->
";".
@@ -1901,6 +1903,8 @@ dissect_query_value([], Acc, Key, Value) ->
dissect_query_separator_amp("&" ++ T, Acc, Key, Value) ->
dissect_query_key(T, Acc, Key, Value);
+dissect_query_separator_amp("&" ++ T, Acc, Key, Value) ->
+ dissect_query_key(T, Acc, Key, Value);
dissect_query_separator_amp(L, _, _, _) ->
throw({error, invalid_separator, L}).