summaryrefslogtreecommitdiff
path: root/includes/inc_video.php
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-26 15:40:44 +0100
committerAlib <aliboba@free.fr>2010-02-26 15:40:44 +0100
commitd26bb405c701b278ecf4b34b9b2d3012e90340ac (patch)
tree9d4ce589f4eff06cb6656e15a0ed3fa36f0c84d2 /includes/inc_video.php
parent89dbb951e87914fa73a7bad65a5c7d4d9bef0131 (diff)
downloadistreamdev-d26bb405c701b278ecf4b34b9b2d3012e90340ac.tar.gz
istreamdev-d26bb405c701b278ecf4b34b9b2d3012e90340ac.tar.bz2
solved directory with ' in the name.
Diffstat (limited to 'includes/inc_video.php')
-rwxr-xr-xincludes/inc_video.php5
1 files changed, 4 insertions, 1 deletions
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 "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n";
print "<div id=\"topbar\" class=\"transparent\">\r\n";
+
print "<div id=\"leftnav\">\r\n";
if ($subdir == '/')
@@ -31,7 +32,9 @@ print " <br>";
print " <ul class=\"pageitem\">";
print " <li class=\"textbox\"><span class=\"header\">Current path:</span><p>{$subdir}</p></li>";
-$dir_handle = @opendir($mediapath .$subdir);
+$noslashdir = stripslashes($mediapath.$subdir);
+$dir_handle = @opendir($noslashdir);
+
if (!$dir_handle)
{
print "Unable to open $mediapath .$subdir";