Be a little more strict on URI parsing to skip unwanted characters - annna - An… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit cfca604f39b7db50d890aaa36f1a933d632f99f4 | |
parent eb9224759dccf51d31a11f1d286b14ea973ee920 | |
Author: Quentin Rameau <[email protected]> | |
Date: Fri, 8 Nov 2019 21:49:44 +0100 | |
Be a little more strict on URI parsing to skip unwanted characters | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-start-services | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -89,8 +89,8 @@ then | |
[ "$user" = "${botname}" ] && continue | |
uri="$(printf "%s\n" "${text}" \ | |
- | sed 's,.*\(https\{0\,1\}://[^ ]\{1\,\}\).*,\1,' \ | |
- | grep 'https\{0,1\}://[^ ]')" | |
+ | grep 'https\{0,1\}://[^ ]\{1,\}' \ | |
+ | sed "s_.*\(https\{0,1\}://[^]:?#[@!$&'()*+,;= ]\{1,\… | |
case "${text}" in | |
*\#nospoil*) | |
;; |