SMF Development > Fixed or Bogus Bugs
Subs-Editor.php trim & strtolower
Labradoodle-360:
--- Code: --- foreach ($attribs as $s => $v)
{
if ($s == 'size')
$tags[] = array('[size=' . (int) trim($v) . ']', '[/size]');
elseif ($s == 'face')
$tags[] = array('[font=' . trim(strtolower($v)) . ']', '[/font]');
elseif ($s == 'color')
$tags[] = array('[color=' . trim(strtolower($v)) . ']', '[/color]');
}
--- End code ---
Should utilize $smcFunc for trim ($smcFunc['htmltrim']) and strtolower.
Labradoodle-360:
./Sources/Subs-Editor.php
--- Code: --- $row['filename'] = htmlspecialchars($row['filename']);
$row['description'] = htmlspecialchars($row['description']);
--- End code ---
htmlspecialchars used again...without $smcFunc.
Doctor Deejay:
Confirmed on clean SMF 2.0.2 installation ;)
Labradoodle-360:
That's where I found them...
Doctor Deejay:
I know, just confirmed it :)
Navigation
[0] Message Index
[#] Next page
Go to full version