From 5d7629487a9280a1ff8a603d5080d4d645f1d895 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Sun, 27 Sep 2020 16:09:46 -0400 Subject: [PATCH] percent encode '&' and '%' --- src/routes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes.rs b/src/routes.rs index b8f0f9e..edce7ba 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -19,7 +19,9 @@ const FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS .add(b'<') .add(b'>') .add(b'`') - .add(b'+'); + .add(b'+') + .add(b'&') // Interpreted as a GET query + .add(b'#'); // Interpreted as a hyperlink section target type StateData = Data>>;