From 76403a6723274f8dfc0857cef47fd39207128ac1 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 4 Oct 2005 10:33:58 +0000 Subject: [PATCH] Bug 168 - Control scripts paths are relative to ZM_PATH_BIN unless absolute. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1499 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_actions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/zm_actions.php b/web/zm_actions.php index cdea3a662..1d6648744 100644 --- a/web/zm_actions.php +++ b/web/zm_actions.php @@ -345,6 +345,8 @@ if ( isset($action) ) $monitor = mysql_fetch_assoc( $result ); $ctrl_command = $monitor['Command']; + if ( !preg_match( '/^\//', $ctrl_command ) ) + $ctrl_command = ZM_PATH_BIN.'/'.$ctrl_command; if ( $monitor['ControlDevice'] ) $ctrl_command .= " --device=".$monitor['ControlDevice']; if ( $monitor['ControlAddress'] )