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:
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user