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

closed!

(cherry picked from commit c22ea46899)
This commit is contained in:
Ramon Novoa 2016-06-27 13:36:31 +02:00
parent 04c1304a5d
commit 98420e4c06
1 changed files with 1 additions and 1 deletions

View File

@ -8883,7 +8883,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) {
$graph_image_file_encoded = false; $graph_image_file_encoded = false;
// Get the src of the html item // 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])) { if (isset($matches) && isset($matches[1])) {
$file_url = $matches[1]; $file_url = $matches[1];
// Get the file // Get the file