From 9ca351b1ecd54f96606fa62415190a8eede73775 Mon Sep 17 00:00:00 2001 From: Alib Date: Sun, 28 Feb 2010 19:54:13 +0100 Subject: subdirs now ok --- includes/inc_stream.php | 4 +++- includes/inc_video.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/inc_stream.php b/includes/inc_stream.php index 930c332..3b36e8b 100755 --- a/includes/inc_stream.php +++ b/includes/inc_stream.php @@ -95,7 +95,7 @@ foreach ($quality as $qname => $qparams) $mediapath = $_REQUEST['mediapath']; $subdir = $_REQUEST['subdir']; print " \r\n"; - print " \r\n"; + print " \r\n"; // NO BREAK case 2: print " \r\n"; @@ -126,6 +126,8 @@ switch ($type) case 3: $mediapath = $_REQUEST['mediapath']; $subdir = $_REQUEST['subdir']; + $subdir = stripslashes($subdir); + print " "; print " \r\n"; print " \r\n"; diff --git a/includes/inc_video.php b/includes/inc_video.php index dc3f8e0..399326c 100755 --- a/includes/inc_video.php +++ b/includes/inc_video.php @@ -2,6 +2,8 @@ $mediapath = $_REQUEST['mediapath']; $subdir = $_REQUEST['subdir']; +$mediapath = stripslashes($mediapath); +$subdir = stripslashes($subdir); /* Add last slash to dirs */ if ($mediapath[strlen($mediapath)-1] != '/') -- cgit v1.2.3