[hackers] [swerc] Clarify which characters are forbidden in URIs

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Fri, 8 Apr 2016 01:52:59 +0200

According to https://tools.ietf.org/html/rfc3986#section-2.3 authorized
uri characters are: unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~".
---
 bin/werc.rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/werc.rc b/bin/werc.rc
index 01f4714..092b207 100755
--- a/bin/werc.rc
+++ b/bin/werc.rc
_AT_@ -4,7 +4,7 @@
 . ./fltr_cache.rc
 cd ..
 
-forbidden_uri_chars='[^a-zA-Z0-9_+\-\/\.,:]'
+forbidden_uri_chars='[^[:alpha:][:digit:]-._~]'
 difs=$ifs # Used to restore default ifs when needed 
 
 # Expected input: ls -F style, $sitedir/path/to/files/
-- 
2.8.0
Received on Fri Apr 08 2016 - 01:52:59 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 08 2016 - 02:00:20 CEST