1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 10:50:25 +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(); $config = e107::getMySQLConfig();
$dbtable = $config['mySQLdefaultdb']; $dbtable = $config['mySQLdefaultdb'];
//TODO Add a check to be sure the database is not already utf-8. //TODO Add a check to be sure the database is not already utf-8.
// yep, needs more methods - possibly a class in e107_handler // 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='') private function processParm($code_text, $parm, $mode='')
{ {
$tp = e107::getParser();
$imgParms = array(); $imgParms = array();
$parm = preg_replace('#onerror *=#i','',$parm); $parm = preg_replace('#onerror *=#i','',$parm);
@@ -144,7 +145,7 @@ class bb_img extends e_bb_base
$text = ''; $text = '';
foreach($imgParms as $key => $val) foreach($imgParms as $key => $val)
{ {
$text .= $key."=\"".$val."\" "; $text .= $key."='".$tp->toAttribute($val)."' ";
} }
return $text; return $text;
} }