Permalink
Browse files

Remove last space from attribute list in cleanAttributes2 function.

  • Loading branch information...
1 parent 65504d1 commit 713126cd4398b6da34953d84150b7db245458852 julmis committed Jan 31, 2005
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/weblib.php
View
@@ -1189,6 +1189,10 @@ function cleanAttributes2($htmlTag){
foreach ($attrArray as $arreach) {
$attStr .= ' '.strtolower($arreach['name']).'="'.$arreach['value'].'" ';
}
+
+ // Remove last space from attribute list
+ $attStr = rtrim($attStr);
+
$xhtml_slash = '';
if (preg_match('%/\s*$%', $attrlist)) {
$xhtml_slash = ' /';

0 comments on commit 713126c

Please sign in to comment.