From d26bb405c701b278ecf4b34b9b2d3012e90340ac Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 26 Feb 2010 15:40:44 +0100 Subject: solved directory with ' in the name. --- includes/inc_video.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes/inc_video.php') diff --git a/includes/inc_video.php b/includes/inc_video.php index 10a5714..cc12664 100755 --- a/includes/inc_video.php +++ b/includes/inc_video.php @@ -11,6 +11,7 @@ if ($subdir[strlen($subdir)-1] != '/') print "\r\n"; print "
\r\n"; + print "
\r\n"; if ($subdir == '/') @@ -31,7 +32,9 @@ print "
"; print "
    "; print "
  • Current path:

    {$subdir}

  • "; -$dir_handle = @opendir($mediapath .$subdir); +$noslashdir = stripslashes($mediapath.$subdir); +$dir_handle = @opendir($noslashdir); + if (!$dir_handle) { print "Unable to open $mediapath .$subdir"; -- cgit v1.2.3