diff --git a/web/skins/xml/includes/functions.php b/web/skins/xml/includes/functions.php index 82207eda5..f1bc3222a 100644 --- a/web/skins/xml/includes/functions.php +++ b/web/skins/xml/includes/functions.php @@ -1,4 +1,13 @@ /dev/null"; $shellOutput = shell_exec($shellCmd); - $url = "./".ZM_DIR_EVENTS."/".getEventPath($event)."/capture.mov"; + $url = "./".getEventPathSafe($event)."/capture.mov"; header("Location: ".$url); exit; @@ -110,7 +110,7 @@ if (isset($_GET['action'])) { } /* Suffix based on 'analyze' */ $fname = sprintf("%03d-%s.jpg", $frame, $suffix); - $url = "./".ZM_DIR_EVENTS."/".getEventPath($event)."/".$fname; + $url = "./".getEventPathSafe($event)."/".$fname; if (!file_exists($url)) { $url = "./skins/xml/views/notfound.png"; }