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-04-14 21:46:58 +00:00
2015-06-30 13:30:02 +00:00
2015-06-15 19:30:00 +00:00
2015-06-30 10:30:02 +00:00
2015-06-30 12:30:02 +00:00
2015-06-30 12:30:02 +00:00
2015-06-15 19:30:00 +00:00
2015-06-30 16:30:02 +00:00
2015-06-15 19:30:00 +00:00
2015-02-15 09:20:19 +00:00
2015-06-15 19:30:00 +00:00
2015-04-22 18:11:41 +00:00
2015-06-15 19:30:00 +00:00
2015-06-15 19:30:00 +00:00
2015-06-18 08:30:02 +00:00
2015-06-22 22:30:03 +00:00
2015-06-25 21:10:50 +00:00
2015-04-08 13:38:58 +00:00
2015-06-03 07:11:05 +00:00
2015-04-16 19:14:20 +00:00
2015-06-15 19:30:00 +00:00
2015-06-30 13:30:02 +00:00
2015-06-30 10:30:02 +00:00
2015-06-30 15:35:23 +00:00
2015-05-01 11:13:39 +00:00
2015-06-30 12:30:02 +00:00
2015-03-18 18:34:12 +00:00
2015-06-30 10:30:02 +00:00
2015-06-30 11:30:02 +00:00
2015-06-30 11:30:02 +00:00
2015-06-30 12:30:02 +00:00
2014-12-27 17:12:42 +00:00
2015-06-30 13:30:02 +00:00
2015-06-15 19:30:00 +00:00
2015-06-15 19:30:00 +00:00
2015-06-15 19:30:00 +00:00
2015-06-19 15:54:13 +00:00
2015-06-15 19:30:00 +00:00
2015-06-15 19:30:00 +00:00
2015-06-19 16:33:05 +00:00
2015-06-30 12:30:02 +00:00
2015-06-30 13:30:02 +00:00
2015-06-30 13:30:02 +00:00
2015-06-13 05:35:54 +00:00
2015-06-30 13:30:02 +00:00
2015-06-30 12:30:02 +00:00
2015-06-30 12:30:02 +00:00
2015-06-30 12:30:02 +00:00
2015-06-30 13:30:02 +00:00
2015-05-01 11:13:39 +00:00
2015-06-30 12:30:02 +00:00
2015-07-02 19:08:48 +04:00