Introduction
Introduction Statistics Contact Development Disclaimer Help
Exit fetch-uri when invalid parameter. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 947562567b640969b5ac61cdf7975b9bbf594d85
parent 6e5af1044ae05d0c5c49218a09b317f9df605615
Author: Annna Robert-Houdin <[email protected]>
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(-)
---
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%%/*}" ;;
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.