FreeStyleWiki
Revisión | 0d6f861fbdf3d54b5646f1ad7bcdb22876ba9892 (tree) |
---|---|
Tiempo | 2018-06-27 21:14:02 |
Autor | kgsoft <kgsoft@user...> |
Commiter | kgsoft |
BugTrack-wiki/292 : rssプラグインで生成するリンクが不正になる
@@ -85,7 +85,7 @@ sub parse_rss { | ||
85 | 85 | } |
86 | 86 | |
87 | 87 | if($version eq "1.0"){ |
88 | - $$content =~ m#(/channel>|/language>)#gsi; | |
88 | + $$content =~ m#(/channel>|/language>)#si; | |
89 | 89 | } |
90 | 90 | |
91 | 91 | my $count=0; |
@@ -98,26 +98,26 @@ sub parse_rss { | ||
98 | 98 | my $title = ""; |
99 | 99 | my $date = ""; |
100 | 100 | |
101 | - $item =~ m#title>([^<]+)</#gsi; | |
101 | + $item =~ m#title>([^<]+)</#si; | |
102 | 102 | $title = $1; |
103 | 103 | |
104 | - $item =~ m#link>([^<]+)</#gsi; | |
104 | + $item =~ m#link>([^<]+)</#si; | |
105 | 105 | $link = $1; |
106 | 106 | $link =~ s/\s".*//g; # ¥À¥Ö¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó°Ê¹ß¤òÀÚ¤êÍî¤È¤¹ |
107 | 107 | |
108 | 108 | if ($version eq "2.0") { |
109 | - if ($item =~ m#pubDate>([^<]+)</#gsi) { | |
109 | + if ($item =~ m#pubDate>([^<]+)</#si) { | |
110 | 110 | $date = $1; |
111 | 111 | } |
112 | 112 | } |
113 | 113 | 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) { | |
116 | 116 | $date = $1; |
117 | 117 | } |
118 | 118 | } |
119 | 119 | if ($version eq "0.91") { |
120 | - if($item =~ m#description>([^<]+)</#gsi){ | |
120 | + if($item =~ m#description>([^<]+)</#si){ | |
121 | 121 | $date = $1; |
122 | 122 | } |
123 | 123 | } |