From: <var...@us...> - 2009-11-02 09:52:03
|
Revision: 7255 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7255&view=rev Author: vargenau Date: 2009-11-02 09:51:56 +0000 (Mon, 02 Nov 2009) Log Message: ----------- Fix isImageLink so that incorrect attributes are recognized Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-11-01 19:40:59 UTC (rev 7254) +++ trunk/lib/InlineParser.php 2009-11-02 09:51:56 UTC (rev 7255) @@ -319,8 +319,7 @@ function isImageLink($link) { if (!$link) return false; assert(defined('INLINE_IMAGES')); - return preg_match("/\\.(" . INLINE_IMAGES . ")$/i", $link) - or preg_match("/\\.(" . INLINE_IMAGES . ")\s+(size|border|align|hspace|vspace|type|data|width|height|title|lang|id|alt)=/i", $link); + return preg_match("/\\.(" . INLINE_IMAGES . ")/i", $link); } function LinkBracketLink($bracketlink) { @@ -458,7 +457,7 @@ * [File:my_image.gif] inlines the image, * File:my_image.gif shows a plain inter-wiki link, * [what a pic|File:my_image.gif] shows a named inter-wiki link to the gif - * [File:my_image.gif|what a pic] shows a inlimed image linked to the page "what a pic" + * [File:my_image.gif|what a pic] shows an inlined image linked to the page "what a pic" * * Note that for simplicity we will accept embedded object tags (non-images) * here also, and seperate them later in LinkImage() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |