Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove last space from attribute list in cleanAttributes2 function.

  • Loading branch information...
commit 713126cd4398b6da34953d84150b7db245458852 1 parent 65504d1
authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  lib/weblib.php
4  lib/weblib.php
@@ -1189,6 +1189,10 @@ function cleanAttributes2($htmlTag){
1189 1189
     foreach ($attrArray as $arreach) {
1190 1190
         $attStr .=  ' '.strtolower($arreach['name']).'="'.$arreach['value'].'" ';
1191 1191
     }
  1192
+
  1193
+    // Remove last space from attribute list
  1194
+    $attStr = rtrim($attStr);
  1195
+
1192 1196
     $xhtml_slash = '';
1193 1197
     if (preg_match('%/\s*$%', $attrlist)) {
1194 1198
         $xhtml_slash = ' /';

0 notes on commit 713126c

Please sign in to comment.
Something went wrong with that request. Please try again.