mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix multiple PHP warnings
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* xml class
|
||||
*/
|
||||
class xml {
|
||||
|
||||
/**
|
||||
* Escapes xml special characters to html entities and sanitze switch special chars.
|
||||
* @param mixed $string
|
||||
* @return void
|
||||
*/
|
||||
static function sanitize($string) {
|
||||
$string = preg_replace('/\$\{[^}]+\}/', '', $string);
|
||||
|
||||
Reference in New Issue
Block a user