Skip to content

Commit 4a78f98

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 6cb5809 commit 4a78f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

superbench.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ ip_info3() {
369369
}
370370

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

@@ -624,7 +624,7 @@ log_preupload() {
624624

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

0 commit comments

Comments
 (0)