1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 18:30:53 +02:00

Quotation consistency fix for [img] bbcode.

This commit is contained in:
Cameron
2018-09-12 12:03:17 -07:00
parent 5235b4fcaf
commit 9c13a9dcde
2 changed files with 3 additions and 2 deletions

View File

@@ -783,7 +783,7 @@ class system_tools
{
$config = e107::getMySQLConfig();
$dbtable = $config['mySQLdefaultdb'];
//TODO Add a check to be sure the database is not already utf-8.
// yep, needs more methods - possibly a class in e107_handler

View File

@@ -103,6 +103,7 @@ class bb_img extends e_bb_base
private function processParm($code_text, $parm, $mode='')
{
$tp = e107::getParser();
$imgParms = array();
$parm = preg_replace('#onerror *=#i','',$parm);
@@ -144,7 +145,7 @@ class bb_img extends e_bb_base
$text = '';
foreach($imgParms as $key => $val)
{
$text .= $key."=\"".$val."\" ";
$text .= $key."='".$tp->toAttribute($val)."' ";
}
return $text;
}