mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Use non greedy match.
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
global $debug;
|
||||
|
||||
//fix the xml by escaping the contents of <sip_full_XXX>
|
||||
$xml_string = preg_replace_callback("/<([^><]+)>(.*[><].*)<\/\g1>/",
|
||||
$xml_string = preg_replace_callback("/<([^><]+)>(.*?[><].*?)<\/\g1>/",
|
||||
function ($matches) {
|
||||
var_dump($matches);
|
||||
return '<' . $matches[1] . '>' .
|
||||
|
||||
Reference in New Issue
Block a user