Revert "Be a little more strict on URI parsing to skip unwanted characters" - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit ca0f2ce4009a8f8f2a6999fa6581df78c7e01cbb DIR parent cfca604f39b7db50d890aaa36f1a933d632f99f4 HTML Author: Quentin Rameau <quinq@fifth.space> 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(-) --- DIR 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,\}\).*_\1_")" + | sed 's,.*\(https\{0\,1\}://[^ ]\{1\,\}\).*,\1,' \ + | grep 'https\{0,1\}://[^ ]')" case "${text}" in *\#nospoil*) ;;