[[alias>URL]]形式で画像にリンクすると、期待したように表示されない。
[[http://www.example.com/.png>http://www.example.com/]]
→[[http://www.example.com/.png>http://www.example.com/]]
(インライン画像を有効にしないと表示されない)
aliasがURLとして有効で、.png等の拡張子を持つ場合に、
<a href="http://www.example.com/" rel="nofollow"> <img src="http://www.example.com/.png" alt="http://www.example.com/" /> </a>
nameがURLとして有効で、.png等の拡張子を持つ場合に、
<a href="http://www.example.com/" rel="nofollow"> <img src="http://www.example.com/" alt="http://www.example.com/.png" /> </a>
--- make_link.php.070907 2007-05-09 17:26:27.000000000 +0900 +++ make_link.php 2007-09-08 03:27:16.000000000 +0900 @@ -186,8 +186,8 @@ $this->body = $body; $this->type = $type; if (! PKWK_DISABLE_INLINE_IMAGE_FROM_URI && - is_url($alias) && preg_match('/\.(gif|png|jpe?g)$/i', $alias)) { - $alias = '<img src="' . htmlspecialchars($alias) . '" alt="' . $name . '" />'; + is_url($name) && preg_match('/\.(gif|png|jpe?g)(\?|$)/i', $name)) { + $alias = '<img src="' . htmlspecialchars($name) . '" alt="' . $alias . '" />'; } else if ($alias != '') { if ($converter === NULL) $converter = new InlineConverter(array('plugin'));
<a href="http://pukiwiki.sourceforge.jp/image/b_pukiwiki.official.png" rel="nofollow"> http://pukiwiki.sourceforge.jp/</a>
<a href="http://pukiwiki.sourceforge.jp/" rel="nofollow"> <img src="http://pukiwiki.sourceforge.jp/image/b_pukiwiki.official.png" alt="http://pukiwiki.sourceforge.jp/" /></a>