allow /dev/urandom to be used in open_basedir path, as some applications may require that (*cough* owncloud), thx to J-BBB
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -44,7 +44,7 @@ function appendOpenBasedirPath($path = '', $first = false) {
|
|||||||
|
|
||||||
if($path != ''
|
if($path != ''
|
||||||
&& $path != '/'
|
&& $path != '/'
|
||||||
&& !preg_match("#^/dev#i", $path)
|
&& (!preg_match("#^/dev#i", $path) || preg_match("#^/dev/urandom#i", $path))
|
||||||
&& !preg_match("#^/proc#i", $path)
|
&& !preg_match("#^/proc#i", $path)
|
||||||
&& !preg_match("#^/etc#i", $path)
|
&& !preg_match("#^/etc#i", $path)
|
||||||
&& !preg_match("#^/sys#i", $path)
|
&& !preg_match("#^/sys#i", $path)
|
||||||
|
|||||||
Reference in New Issue
Block a user