]> git.mjollnir.org Git - moodle.git/commitdiff
Remove last space from attribute list in cleanAttributes2 function.
authorjulmis <julmis>
Mon, 31 Jan 2005 20:09:17 +0000 (20:09 +0000)
committerjulmis <julmis>
Mon, 31 Jan 2005 20:09:17 +0000 (20:09 +0000)
lib/weblib.php

index 7f9578ff6b4ffe7f5e6861a3fd8c192b885fe580..f3123fe98a8994000f6ad9116851114592913dcb 100644 (file)
@@ -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 = ' /';