Fixed a regexp in functions_api.php. Sometimes img tags are not properly

closed!
This commit is contained in:
Ramon Novoa 2016-06-27 13:36:31 +02:00
parent a8b4f7f535
commit c22ea46899
1 changed files with 1 additions and 1 deletions

View File

@ -8846,7 +8846,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) {
$graph_image_file_encoded = false;
// Get the src of the html item
if (preg_match("/<img src='(.+)'>/", $graph_html, $matches)) {
if (preg_match("/<img src='(.+)'.*/", $graph_html, $matches)) {
if (isset($matches) && isset($matches[1])) {
$file_url = $matches[1];
// Get the file