filename fix

pull/41/head
gotbletu 3 years ago
parent 00a00eb6b0
commit f523f8001e

@ -6,7 +6,7 @@
# REQD: 1. $EDITOR ~/.w3m/siteconf
# url m@^gopher?://(.*)hURL:@
# substitute_url "file:///cgi-bin/gopher_redirect.cgi?"
# 2. chmod +x ~/.w3m/cgi-bin/gopher_redirector.cgi
# 2. chmod +x ~/.w3m/cgi-bin/gopher_redirect.cgi
# 3. sed -i 's@cgi_bin.*@cgi_bin ~/.w3m/cgi-bin:/usr/lib/w3m/cgi-bin:/usr/local/libexec/w3m/cgi-bin@g' ~/.w3m/config
# Note: check if you have native gopher protocol support
@ -15,6 +15,6 @@
# remove gopher hURL header link
# e.g gopher://gopher.floodgap.com/hURL:http://www.floodgap.com/ --> http://www.floodgap.com/
QUERY_STRING=$(echo "$QUERY_STRING" | sed 's@^gopher.*hURL:@@')
QUERY_STRING=$(printf "%s\n" "$QUERY_STRING" | sed 's@^gopher.*hURL:@@')
printf "%s\r\n" "W3m-control: GOTO $QUERY_STRING"
printf "%s\r\n" "W3m-control: DELETE_PREVBUF"

Loading…
Cancel
Save