mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-5323-Phar-object-injection' into 'develop'
Prepend folder to image to avoid Phar injection See merge request artica/pandorafms!3021
This commit is contained in:
commit
189ba74f01
@ -57,6 +57,9 @@ switch ($graph_type) {
|
||||
$out_of_lim_str = io_safe_output(get_parameter('out_of_lim_str', false));
|
||||
$out_of_lim_image = get_parameter('out_of_lim_image', false);
|
||||
|
||||
// Add relative path to avoid phar object injection.
|
||||
$out_of_lim_image = '../graphs/'.$out_of_lim_image;
|
||||
|
||||
$title = get_parameter('title');
|
||||
|
||||
$mode = get_parameter('mode', 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user