From 9c13a9dcde86fa693a51be7130f43213dd7bf61b Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 12 Sep 2018 12:03:17 -0700 Subject: [PATCH] Quotation consistency fix for [img] bbcode. --- e107_admin/db.php | 2 +- e107_core/bbcodes/bb_img.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/e107_admin/db.php b/e107_admin/db.php index 7a01f3fbf..747248b10 100644 --- a/e107_admin/db.php +++ b/e107_admin/db.php @@ -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 diff --git a/e107_core/bbcodes/bb_img.php b/e107_core/bbcodes/bb_img.php index 63c53f8e9..8a5aeb383 100644 --- a/e107_core/bbcodes/bb_img.php +++ b/e107_core/bbcodes/bb_img.php @@ -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; }