mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Quotation consistency fix for [img] bbcode.
This commit is contained in:
@@ -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