aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-04-20 13:30:27 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-04-20 13:30:27 +0000
commit03eccddd6c9b9566f2b875d130f5fa0589e23626 (patch)
tree816a75303c517555f8da1d37d3cc4108bd2716aa
parent[w3m-dev 03882] Re: Bug#189460: w3m: <q> tag is not recognized (diff)
downloadw3m-03eccddd6c9b9566f2b875d130f5fa0589e23626.tar.gz
w3m-03eccddd6c9b9566f2b875d130f5fa0589e23626.zip
[w3m-dev 03883] User-Agent for Bonus/2ch.cgi
* Bonus/2ch.cgi: User-Agent From: qhwt@myrealbox.com
Diffstat (limited to '')
-rwxr-xr-xBonus/2ch.cgi3
-rw-r--r--ChangeLog7
2 files changed, 8 insertions, 2 deletions
diff --git a/Bonus/2ch.cgi b/Bonus/2ch.cgi
index 392fb22..edb36b7 100755
--- 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
index 5f40586..8000bd8 100644
--- 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
@@ -7765,4 +7770,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.827 2003/04/18 16:47:16 ukai Exp $
+$Id: ChangeLog,v 1.828 2003/04/20 13:30:27 ukai Exp $