forked from Wavyzz/dolibarr
Fix regression
This commit is contained in:
@@ -2176,6 +2176,7 @@ function dol_escape_htmltag($stringtoescape, $keepb = 0, $keepn = 0, $noescapeta
|
|||||||
} while ($diff);
|
} while ($diff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$tmp = str_ireplace('"', '__DOUBLEQUOT', $tmp);
|
||||||
$tmp = str_ireplace('<', '__LESSTAN', $tmp);
|
$tmp = str_ireplace('<', '__LESSTAN', $tmp);
|
||||||
$tmp = str_ireplace('>', '__GREATERTHAN', $tmp);
|
$tmp = str_ireplace('>', '__GREATERTHAN', $tmp);
|
||||||
}
|
}
|
||||||
@@ -2203,6 +2204,7 @@ function dol_escape_htmltag($stringtoescape, $keepb = 0, $keepn = 0, $noescapeta
|
|||||||
|
|
||||||
$result = str_ireplace('__SIMPLEQUOTE', ''', $result);
|
$result = str_ireplace('__SIMPLEQUOTE', ''', $result);
|
||||||
|
|
||||||
|
$result = str_ireplace('__DOUBLEQUOT', '"', $result);
|
||||||
$result = str_ireplace('__LESSTAN', '<', $result);
|
$result = str_ireplace('__LESSTAN', '<', $result);
|
||||||
$result = str_ireplace('__GREATERTHAN', '>', $result);
|
$result = str_ireplace('__GREATERTHAN', '>', $result);
|
||||||
|
|
||||||
@@ -8526,7 +8528,8 @@ function dol_htmlwithnojs($stringtoencode, $nouseofiframesandbox = 0, $check = '
|
|||||||
// See options at https://tidy.sourceforge.net/docs/quickref.html
|
// See options at https://tidy.sourceforge.net/docs/quickref.html
|
||||||
$config = array(
|
$config = array(
|
||||||
'clean' => false,
|
'clean' => false,
|
||||||
'quote-marks' => false, // do not replace " that are used for real text content (not a string symbol for html attribute) into "
|
// Best will be to set 'quote-marks' to false to not replace " that are used for real text content (not a string symbol for html attribute) into "
|
||||||
|
'quote-marks' => false,
|
||||||
'doctype' => 'strict',
|
'doctype' => 'strict',
|
||||||
'show-body-only' => true,
|
'show-body-only' => true,
|
||||||
"indent-attributes" => false,
|
"indent-attributes" => false,
|
||||||
|
|||||||
Reference in New Issue
Block a user