Revert "Be a little more strict on URI parsing to skip unwanted characters" - a… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit ca0f2ce4009a8f8f2a6999fa6581df78c7e01cbb | |
parent cfca604f39b7db50d890aaa36f1a933d632f99f4 | |
Author: Quentin Rameau <[email protected]> | |
Date: Sat, 9 Nov 2019 21:09:15 +0100 | |
Revert "Be a little more strict on URI parsing to skip unwanted characters" | |
This reverts commit cfca604f39b7db50d890aaa36f1a933d632f99f4. | |
The whole URL parsing is complex and not always respected. | |
Go back to original (non) parsing. | |
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}" \ | |
- | grep 'https\{0,1\}://[^ ]\{1,\}' \ | |
- | sed "s_.*\(https\{0,1\}://[^]:?#[@!$&'()*+,;= ]\{1,\… | |
+ | sed 's,.*\(https\{0\,1\}://[^ ]\{1\,\}\).*,\1,' \ | |
+ | grep 'https\{0,1\}://[^ ]')" | |
case "${text}" in | |
*\#nospoil*) | |
;; |