Files
fusionpbx/app/xml_cdr
Alexey Melnichuk 90d91c8b5a Fix. Escape <> in all fields in CDR xml.
When using redirect cdr also can contain e.g. `sip_redirect_contact_0` / `sip_redirected_to`.
I use `preg_replace_callback` to proceed all fields.
May be it more correct use urlencode because if we get xml with non UTF8 char we lost CDR.
```php
$xml_string = preg_replace_callback("/<([^><]+)>(.*?)<\/\g1>/",
	function ($matches) {
		// var_dump($matches);
		return '<' . $matches[1] . '>' .
			urlencode($matches[2]).
		'</' . $matches[1] . '>';
	},
	$xml_string
);
```
2015-07-02 19:08:48 +04:00
..
2015-03-22 00:01:39 +00:00
2015-06-30 11:30:02 +00:00
2015-06-15 19:30:00 +00:00
2013-10-29 22:47:50 +00:00
2015-05-01 17:39:13 +00:00