Exit fetch-uri when invalid parameter. - annna - Annna the nice friendly bot.
 (HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
       ---
 (DIR) commit 947562567b640969b5ac61cdf7975b9bbf594d85
 (DIR) parent 6e5af1044ae05d0c5c49218a09b317f9df605615
 (HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Mon, 10 Mar 2025 20:50:27 +0100
       
       Exit fetch-uri when invalid parameter.
       
       Diffstat:
         M fetch-uri                           |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/fetch-uri b/fetch-uri
       @@ -23,6 +23,7 @@ uri="$1"
        usetor=""
        ua="$(http-user-agent)"
        beg="${uri#*://}"
       +[ -z "${beg}" ] && exit 1
        beg="${beg:?}"
        case "$beg" in
            */*) host="${beg%%/*}" ;;