mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-23 18:01:36 +01:00
remove error
This commit is contained in:
@@ -923,10 +923,6 @@ function sanitizeVal($out = '', $check = 'alphanohtml', $filter = null, $options
|
|||||||
// Remove the trick added to solve pb with text without parent tag
|
// Remove the trick added to solve pb with text without parent tag
|
||||||
$out = preg_replace('/^<div class="tricktoremove">/', '', $out);
|
$out = preg_replace('/^<div class="tricktoremove">/', '', $out);
|
||||||
$out = preg_replace('/<\/div>$/', '', $out);
|
$out = preg_replace('/<\/div>$/', '', $out);
|
||||||
preg_match_all('/(<img)/', $out, $reg);
|
|
||||||
if (count($reg[0]) > (getDolGlobalInt("MAIN_SECURITY_MAX_IMG_IN_HTML_CONTENT") ? getDolGlobalInt("MAIN_SECURITY_MAX_IMG_IN_HTML_CONTENT") : 1000)) {
|
|
||||||
$out = '';
|
|
||||||
}
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//print $e->getMessage();
|
//print $e->getMessage();
|
||||||
return 'InvalidHTMLString';
|
return 'InvalidHTMLString';
|
||||||
|
|||||||
Reference in New Issue
Block a user