• R/O
  • HTTP
  • SSH
  • HTTPS

fswiki: Commit

FreeStyleWiki


Commit MetaInfo

Revision0d6f861fbdf3d54b5646f1ad7bcdb22876ba9892 (tree)
Time2018-06-27 21:14:02
Authorkgsoft <kgsoft@user...>
Commiterkgsoft

Log Message

BugTrack-wiki/292 : rssプラグインで生成するリンクが不正になる

Change Summary

Incremental Difference

--- a/plugin/rss/RSS.pm
+++ b/plugin/rss/RSS.pm
@@ -85,7 +85,7 @@ sub parse_rss {
8585 }
8686
8787 if($version eq "1.0"){
88- $$content =~ m#(/channel>|/language>)#gsi;
88+ $$content =~ m#(/channel>|/language>)#si;
8989 }
9090
9191 my $count=0;
@@ -98,26 +98,26 @@ sub parse_rss {
9898 my $title = "";
9999 my $date = "";
100100
101- $item =~ m#title>([^<]+)</#gsi;
101+ $item =~ m#title>([^<]+)</#si;
102102 $title = $1;
103103
104- $item =~ m#link>([^<]+)</#gsi;
104+ $item =~ m#link>([^<]+)</#si;
105105 $link = $1;
106106 $link =~ s/\s".*//g; # ダブルクォーテーション以降を切り落とす
107107
108108 if ($version eq "2.0") {
109- if ($item =~ m#pubDate>([^<]+)</#gsi) {
109+ if ($item =~ m#pubDate>([^<]+)</#si) {
110110 $date = $1;
111111 }
112112 }
113113 if ($version eq "1.0") {
114- #if ($item =~ m#(description|dc\:date)>([^<]+)</#gs) {
115- if ($item =~ m#dc\:date>([^<]+)</#gsi) {
114+ #if ($item =~ m#(description|dc\:date)>([^<]+)</#si) {
115+ if ($item =~ m#dc\:date>([^<]+)</#si) {
116116 $date = $1;
117117 }
118118 }
119119 if ($version eq "0.91") {
120- if($item =~ m#description>([^<]+)</#gsi){
120+ if($item =~ m#description>([^<]+)</#si){
121121 $date = $1;
122122 }
123123 }
Show on old repository browser