diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-23 13:59:27 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-23 13:59:27 +0100 |
commit | be27c9fd4fc24205475c1f8eb4332bde6959c8dc (patch) | |
tree | a7104b8a2831d1fd39c08036f5f495b90c5dd1ff /bin/session.php | |
parent | 4568b0e65d4f029384aeec26e2b2df6b8f37ffc2 (diff) | |
download | istreamdev-be27c9fd4fc24205475c1f8eb4332bde6959c8dc.tar.gz istreamdev-be27c9fd4fc24205475c1f8eb4332bde6959c8dc.tar.bz2 |
Now check URL validity
Diffstat (limited to 'bin/session.php')
-rwxr-xr-x | bin/session.php | 7 |
1 files changed, 7 insertions, 0 deletions
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 |