From 411854385c31ad8215650d443217554e1ba2eb30 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Thu, 2 Jun 2022 20:12:07 -0700 Subject: [PATCH] Percent-escape single quote --- src/routes.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes.rs b/src/routes.rs index a25af20..3942d98 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -21,7 +21,8 @@ const FRAGMENT_ENCODE_SET: &AsciiSet = &CONTROLS .add(b'`') .add(b'+') .add(b'&') // Interpreted as a GET query - .add(b'#'); // Interpreted as a hyperlink section target + .add(b'#') // Interpreted as a hyperlink section target + .add(b'\''); type StateData = Data>>;