From be27c9fd4fc24205475c1f8eb4332bde6959c8dc Mon Sep 17 00:00:00 2001 From: TheTroll Date: Tue, 23 Mar 2010 13:59:27 +0100 Subject: Now check URL validity --- bin/session.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/session.php') diff --git a/bin/session.php b/bin/session.php index fee5b58..144b8da 100755 --- a/bin/session.php +++ b/bin/session.php @@ -4,6 +4,10 @@ function sessioncreate($type, $url, $mode) { global $httppath, $ffmpegpath, $segmenterpath, $quality, $maxencodingprocesses; + // Check url + if (!isurlvalid($url, $type)) + return ""; + // Check that the max number of session is not reached yet $nbencprocess = exec("find ../ram/ -name segmenter.pid | wc | awk '{ print $1 }'"); if ($nbencprocess >= $maxencodingprocesses) @@ -336,6 +340,9 @@ function streammusic($path, $file) { global $httppath; + if (!isurlvalid($path, "media")) + return array(); + $files = array(); // Create all symlinks -- cgit v1.2.3