From: <var...@us...> - 2009-10-29 09:29:12
|
Revision: 7243 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7243&view=rev Author: vargenau Date: 2009-10-29 09:28:58 +0000 (Thu, 29 Oct 2009) Log Message: ----------- Use "error" class, "baduri" class does not exist Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2009-10-29 08:59:30 UTC (rev 7242) +++ trunk/lib/stdlib.php 2009-10-29 09:28:58 UTC (rev 7243) @@ -391,8 +391,8 @@ function LinkURL($url, $linktext = '') { // FIXME: Is this needed (or sufficient?) if(! IsSafeURL($url)) { - $link = HTML::strong(HTML::u(array('class' => 'baduri'), - _("BAD URL -- remove all of <, >, \""))); + $link = HTML::span(array('class' => 'error'), _("BAD URL -- remove all of <, >, \"")); + return $link; } else { if (!$linktext) @@ -428,8 +428,7 @@ $arr = split(' ',$url); if (!empty($arr)) $url = $arr[0]; if (! IsSafeURL($url)) { - $link = HTML::strong(HTML::u(array('class' => 'baduri'), - _("BAD URL -- remove all of <, >, \""))); + $link = HTML::span(array('class' => 'error'), _("BAD URL -- remove all of <, >, \"")); return $link; } // spaces in inline images must be %20 encoded! @@ -725,9 +724,7 @@ $args = array(); if (!preg_match('/^ phpwiki: ([^?]*) [?]? (.*) $/x', $url, $m)) { - return HTML::strong(array('class' => 'rawurl'), - HTML::u(array('class' => 'baduri'), - _("BAD phpwiki: URL"))); + return HTML::span(array('class' => 'error'), _("BAD phpwiki: URL")); } if ($m[1]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |