mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 04:21:30 +01:00
Fix regression
This commit is contained in:
@@ -908,7 +908,7 @@ function sanitizeVal($out = '', $check = 'alphanohtml', $filter = null, $options
|
|||||||
break;
|
break;
|
||||||
case 'restricthtml': // Recommended for most html textarea
|
case 'restricthtml': // Recommended for most html textarea
|
||||||
case 'restricthtmlallowunvalid':
|
case 'restricthtmlallowunvalid':
|
||||||
$out = dol_htmlwithnojs($out, 1);
|
$out = dol_htmlwithnojs($out, 1, $check);
|
||||||
break;
|
break;
|
||||||
case 'custom':
|
case 'custom':
|
||||||
if (!empty($out)) {
|
if (!empty($out)) {
|
||||||
@@ -7098,9 +7098,10 @@ function dol_nl2br($stringtoencode, $nl2brmode = 0, $forxml = false)
|
|||||||
*
|
*
|
||||||
* @param string $stringtoencode String to encode
|
* @param string $stringtoencode String to encode
|
||||||
* @param int $nouseofiframesandbox Allow use of option MAIN_SECURITY_USE_SANDBOX_FOR_HTMLWITHNOJS for html sanitizing
|
* @param int $nouseofiframesandbox Allow use of option MAIN_SECURITY_USE_SANDBOX_FOR_HTMLWITHNOJS for html sanitizing
|
||||||
|
* @param string $check 'restricthtml' or 'restricthtmlallowunvalid'
|
||||||
* @return string HTML sanitized
|
* @return string HTML sanitized
|
||||||
*/
|
*/
|
||||||
function dol_htmlwithnojs($stringtoencode, $nouseofiframesandbox = 0)
|
function dol_htmlwithnojs($stringtoencode, $nouseofiframesandbox = 0, $check = 'restricthtml')
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user