commit 07587a1a987b14fbac0fe163d07e541ecb7e0a38
parent ce0bb7aa175c84fc39c1ac7af4c8cd8bfe46fd84
Author: Eyal Sawady <ecs@d2evs.net>
Date: Sat, 16 Apr 2022 12:15:14 +0000
shlex::quote: fix safe non-alphanumeric chars
Fixes: https://todo.sr.ht/~sircmpwn/himitsu/13
Signed-off-by: Eyal Sawady <ecs@d2evs.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shlex/escape.ha b/shlex/escape.ha
@@ -17,7 +17,7 @@ fn is_safe(s: str) bool = {
switch (rn) {
case '@', '%', '+', '=', ':', ',', '.', '/', '-' =>
- return true;
+ void;
case =>
if (!ascii::isalnum(rn) || ascii::isspace(rn)) {
return false;