Fixed a regexp in functions_api.php. Sometimes img tags are not properly
closed!
This commit is contained in:
parent
a8b4f7f535
commit
c22ea46899
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue