w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit e27b78f209c87a9ebdbd96d4a8a0051ddb0426bf
parent b500a63b9d35a29f13e00083213ce91313aba60e
Author: ukai <ukai>
Date:   Sun, 20 Apr 2003 13:30:27 +0000

[w3m-dev 03883] User-Agent for Bonus/2ch.cgi
* Bonus/2ch.cgi: User-Agent
From: qhwt@myrealbox.com

Diffstat:
MBonus/2ch.cgi | 3++-
MChangeLog | 5+++++
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/Bonus/2ch.cgi b/Bonus/2ch.cgi @@ -4,6 +4,7 @@ $WGET = "wget"; $SCRIPT_NAME = $ENV{'SCRIPT_NAME'} || $0; $CGI = "file://$SCRIPT_NAME"; $_ = $QUERY_STRING = $ENV{"QUERY_STRING"}; +$UserAgent = "Monazilla/1.00 (w3m/2ch.cgi)"; if (/subback.html$/) { &subback(); @@ -21,7 +22,7 @@ $tmp = $ENV{"HOME"} . "/.w3m2ch/$_"; $dat =~ s/([^\w\/.\:\-])/\\$1/g; $tmp =~ s/([^\w\/.\:\-])/\\$1/g; ($dir = $tmp) =~ s@/[^/]+$@@; -$cmd = "mkdir -p $dir; $WGET -c -O $tmp $dat >/dev/null 2>&1"; +$cmd = "mkdir -p $dir; $WGET -c -U \"$UserAgent\" -O $tmp $dat >/dev/null 2>&1"; system $cmd; $lines = (split(" ", `wc $tmp`))[0]; $lines || exit; diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-20 qhwt@myrealbox.com + + * [w3m-dev 03883] User-Agent for Bonus/2ch.cgi + * Bonus/2ch.cgi: User-Agent + 2003-04-19 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 03882] Re: Bug#189460: w3m: <q> tag is not recognized