mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-04-20 22:12:32 +02:00
Avoid a deprecated error from PHP8.1 (#573)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com> Co-authored-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
a336b531f6
commit
ef356f0bc7
@ -286,7 +286,7 @@ class TCPDF_STATIC {
|
||||
*/
|
||||
public static function _escapeXML($str) {
|
||||
$replaceTable = array("\0" => '', '&' => '&', '<' => '<', '>' => '>');
|
||||
$str = strtr($str, $replaceTable);
|
||||
$str = strtr($str === null ? '' : $str, $replaceTable);
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user