Skip to content

Commit 88dd91d

Browse files
committed
Fixed URL query string
Query string should always start with '\?' instead of '?', because the question mark has another meaning in shell.
1 parent 770e001 commit 88dd91d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

superbench.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ ip_info3() {
370370
}
371371

372372
ip_info4() {
373-
echo $(curl -4 -s https://api.ip.la/en?json) >ip_json.json
373+
echo $(curl -4 -s https://api.ip.la/en\?json) >ip_json.json
374374
country=$(python tools.py ipip country_name)
375375
city=$(python tools.py ipip city)
376376
isp=$(python tools.py geoip isp)
@@ -606,7 +606,7 @@ sharetest() {
606606
share_link=$(curl -sF 'clbin=<-' https://clbin.com <$log)
607607
;;
608608
'ptpb')
609-
share_link=$(curl -sF c=@- https://ptpb.pw/?u=1 <$log)
609+
share_link=$(curl -sF c=@- https://ptpb.pw/\?u=1 <$log)
610610
;;
611611
esac
612612

@@ -626,7 +626,7 @@ log_preupload() {
626626

627627
get_ip_whois_org_name() {
628628
#ip=$(curl -s ip.sb)
629-
result=$(curl -s https://rest.db.ripe.net/search.json?query-string=$(curl -s ip.sb))
629+
result=$(curl -s https://rest.db.ripe.net/search.json\?query-string=$(curl -s ip.sb))
630630
#org_name=$(echo $result | jq '.objects.object.[1].attributes.attribute.[1].value' | sed 's/\"//g')
631631
org_name=$(echo $result | jq '.objects.object[1].attributes.attribute[1]' | sed 's/\"//g')
632632
echo $org_name

0 commit comments

Comments
 (0)