From: <var...@us...> - 2011-06-09 07:54:44
|
Revision: 8097 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8097&view=rev Author: vargenau Date: 2011-06-09 07:54:38 +0000 (Thu, 09 Jun 2011) Log Message: ----------- Fix image test Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2011-06-08 13:21:45 UTC (rev 8096) +++ trunk/lib/stdlib.php 2011-06-09 07:54:38 UTC (rev 8097) @@ -563,7 +563,7 @@ * png|jpg|gif|jpeg|bmp|pl|cgi. If no image it is an object to embed. * Note: Allow cgi's (pl,cgi) returning images. */ - if (!preg_match("/\.(".$force_img.")/i", $url)) { + if (!preg_match("/\.(".$force_img.")/i", $ori_url)) { // HTML::img(array('src' => $url, 'alt' => $alt, 'title' => $alt)); // => HTML::object(array('src' => $url)) ...; return ImgObject($link, $ori_url); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |