From: <var...@us...> - 2009-10-28 09:49:00
|
Revision: 7238 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7238&view=rev Author: vargenau Date: 2009-10-28 09:48:52 +0000 (Wed, 28 Oct 2009) Log Message: ----------- Allow "height" and "width" attributes for images Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2009-10-25 19:05:17 UTC (rev 7237) +++ trunk/lib/stdlib.php 2009-10-28 09:48:52 UTC (rev 7238) @@ -460,7 +460,7 @@ $link->setAttr($attr, $value); } // These attributes take a number (pixels) or a percentage: height, width - elseif ((($attr == "border") || ($attr == "hspace") || ($attr == "vspace")) + elseif ((($attr == "height") || ($attr == "width")) && (preg_match('/\d+[%p]?x?/', $value))) { $link->setAttr($attr, $value); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |