better fix
This commit is contained in:
parent
02c0970451
commit
99141928a3
@ -955,8 +955,8 @@ function sanitizeVal($out = '', $check = 'alphanohtml', $filter = null, $options
|
|||||||
// Restore entity ' into ' (restricthtml is for html content so we can use html entity)
|
// Restore entity ' into ' (restricthtml is for html content so we can use html entity)
|
||||||
$out = preg_replace('/'/i', "'", $out);
|
$out = preg_replace('/'/i', "'", $out);
|
||||||
|
|
||||||
preg_match_all('/(<img)/', $out, $reg);
|
preg_match_all('/(<img)/i', $out, $reg);
|
||||||
if (count($reg[0]) > (getDolGlobalInt("MAIN_SECURITY_MAX_IMG_IN_HTML_CONTENT") ? getDolGlobalInt("MAIN_SECURITY_MAX_IMG_IN_HTML_CONTENT") : 1000)) {
|
if (count($reg[0]) > getDolGlobalInt("MAIN_SECURITY_MAX_IMG_IN_HTML_CONTENT", 1000)) {
|
||||||
$out = '';
|
$out = '';
|
||||||
}
|
}
|
||||||
} while ($oldstringtoclean != $out);
|
} while ($oldstringtoclean != $out);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user