diff options
author | Marco Ceppi <marco@ceppi.net> | 2014-01-09 10:40:43 -0800 |
---|---|---|
committer | Marco Ceppi <marco@ceppi.net> | 2014-01-09 10:40:43 -0800 |
commit | 1dc1ff1316133fa1f4c436391246e700df110255 (patch) | |
tree | daaa5b033e80914d90aec93d337c532c03136779 /examples/detect.php | |
parent | 1c83d799e3655e8ae0b435c9e8fc056e553371d9 (diff) | |
parent | feecdf1c0f9278d5abf71ad0ff17aa454147c2af (diff) | |
download | php-openid-1dc1ff1316133fa1f4c436391246e700df110255.zip php-openid-1dc1ff1316133fa1f4c436391246e700df110255.tar.gz php-openid-1dc1ff1316133fa1f4c436391246e700df110255.tar.bz2 |
Merge pull request #100 from fredden/patch-1
Improves open_basedir detection
Diffstat (limited to 'examples/detect.php')
-rw-r--r-- | examples/detect.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/detect.php b/examples/detect.php index f809be2..892162f 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -352,7 +352,7 @@ function detect_stores($r, &$out) } $basedir_str = ini_get('open_basedir'); - if (gettype($basedir_str) == 'string') { + if (gettype($basedir_str) == 'string' && $basedir_str) { $url = 'http://www.php.net/manual/en/features.safe-mode.php' . '#ini.open-basedir'; $lnk = $r->link($url, 'open_basedir'); |