summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-20 05:19:39 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-20 05:19:39 +0800
commit20bf9b0770139ad2c3a702a78e2a66a870bc9e36 (patch)
tree79c6a3c33fc99dba090d2dbbf62d393d6be24167
parent51f37045c02d69ccac244cd5e37bcb71abbe92c4 (diff)
downloadpttbbs-20bf9b0770139ad2c3a702a78e2a66a870bc9e36.tar
pttbbs-20bf9b0770139ad2c3a702a78e2a66a870bc9e36.tar.gz
pttbbs-20bf9b0770139ad2c3a702a78e2a66a870bc9e36.tar.bz2
pttbbs-20bf9b0770139ad2c3a702a78e2a66a870bc9e36.tar.lz
pttbbs-20bf9b0770139ad2c3a702a78e2a66a870bc9e36.tar.xz
pttbbs-20bf9b0770139ad2c3a702a78e2a66a870bc9e36.tar.zst
pttbbs-20bf9b0770139ad2c3a702a78e2a66a870bc9e36.zip
url change
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@524 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/udnnews.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/pttbbs/util/udnnews.pl b/pttbbs/util/udnnews.pl
index 66ddc094..f75a50dd 100644
--- a/pttbbs/util/udnnews.pl
+++ b/pttbbs/util/udnnews.pl
@@ -22,7 +22,7 @@ foreach( @titles ){
postout({brdname => 'udnnews',
title => FormatChinese($_->[1]),
owner => 'udnnews.',
- content => getudnnewscontent("http://udnnews.com/NEWS/FOCUSNEWS/$_->[0]")});
+ content => getudnnewscontent("http://www.udn.com/NEWS/FOCUSNEWS/$_->[0]")});
}
sub getudnnewscontent($)
@@ -45,14 +45,14 @@ sub getudnnewscontent($)
$ret .= FormatChinese($_, 60). "\n" if( $_ );
}
return "※ [轉錄自 $url ]\n\n$ret\n\n".
- "--\n感謝 http://www.udnnews.com/NEWS/ 熱情贊助";
+ "--\n感謝 http://www.udn.com/ 熱情贊助";
}
sub getudnnewstitle($)
{
my($ra_titles) = @_;
my($url, $title);
- open FH, "$LYNX -source http://udnnews.com/NEWS/FOCUSNEWS/ | $GREP '<font color=\"#FF9933\">' |";
+ open FH, "$LYNX -source http://www.udn.com/NEWS/FOCUSNEWS/ | $GREP '<font color=\"#FF9933\">' |";
while( <FH> ){
($url, $title) = $_ =~ m|<font color="#FF9933">.</font><a href="(.*?)"><font color="#003333">(.*?)</font></a><font color="#003333">|;
$title =~ s/<.*?>//g;