mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed a regexp in functions_api.php. Sometimes img tags are not properly
closed! (cherry picked from commit c22ea46899d3f23fedbc32b3a4bea0e44a41fcbe)
This commit is contained in:
parent
04c1304a5d
commit
98420e4c06
@ -8883,7 +8883,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…
x
Reference in New Issue
Block a user