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