Remove harmful HTML decode/encode in BBCode::scaleExternalImages
This commit is contained in:
parent
7420d07699
commit
0b3cd206c3
1 changed files with 1 additions and 3 deletions
|
@ -444,7 +444,7 @@ class BBCode
|
||||||
}
|
}
|
||||||
|
|
||||||
// Picture addresses can contain special characters
|
// Picture addresses can contain special characters
|
||||||
$s = htmlspecialchars_decode($srctext);
|
$s = $srctext;
|
||||||
|
|
||||||
$matches = null;
|
$matches = null;
|
||||||
$c = preg_match_all('/\[img.*?\](.*?)\[\/img\]/ism', $s, $matches, PREG_SET_ORDER);
|
$c = preg_match_all('/\[img.*?\](.*?)\[\/img\]/ism', $s, $matches, PREG_SET_ORDER);
|
||||||
|
@ -501,8 +501,6 @@ class BBCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace the special char encoding
|
|
||||||
$s = htmlspecialchars($s, ENT_NOQUOTES, 'UTF-8');
|
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue