From 2a09efdfd494dca66459bbcd9870e90591e4485b Mon Sep 17 00:00:00 2001 From: jaidhar Date: Sun, 7 Nov 2010 04:05:16 +0000 Subject: [PATCH] XML Plugin: Looks like getEventPath is broken between 1.24.2 and 1.24.3, implement getEventPathSafe to workaround git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3181 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/skins/xml/includes/functions.php | 9 +++++++++ web/skins/xml/views/actions.php | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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"; }