From: <var...@us...> - 2011-06-08 13:21:51
|
Revision: 8096 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8096&view=rev Author: vargenau Date: 2011-06-08 13:21:45 +0000 (Wed, 08 Jun 2011) Log Message: ----------- Do not trim last character from image name when there are attributes (bug from r8009) Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2011-06-08 07:46:33 UTC (rev 8095) +++ trunk/lib/stdlib.php 2011-06-08 13:21:45 UTC (rev 8096) @@ -430,9 +430,9 @@ $arr = parse_attributes(strstr($url, " ")); foreach ($arr as $attr => $value) { // strip attr=... url suffix + $link->setAttr('src', $url); $i = strpos($url, $attr); $url = substr($url, 0, $i-1); - $link->setAttr('src', $url); // These attributes take strings: lang, id, title, alt if (($attr == "lang") || ($attr == "id") @@ -476,7 +476,7 @@ } } else { - $url = substr(strrchr($url, "/"), 1); + $url = substr(strrchr($ori_url, "/"), 1); $link = HTML::span(array('class' => 'error'), sprintf(_("Invalid attribute %s=%s for image %s"), $attr, $value, $url)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |