From 7829f705752018252d53b5b040e22a29e24f5097 Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Tue, 16 Sep 2014 12:39:34 -0400 Subject: [PATCH] Replaced file_exists() with stream_resolve_include_path() * The file_exists() function does not behave properly across symlinks, returning FALSE if the directory permissions while traversing the real path prevent access. This prevents the baseurl.php include file from being included, even though it is present and readable. (DBOINCP-157) --- drupal/sites/default/settings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drupal/sites/default/settings.php b/drupal/sites/default/settings.php index da9750c676..baf84b02a2 100644 --- a/drupal/sites/default/settings.php +++ b/drupal/sites/default/settings.php @@ -119,8 +119,9 @@ $db_prefix = ''; * for you. */ # $base_url = 'http://www.example.com'; // NO trailing slash! -if (file_exists('baseurl.php')) - include_once('baseurl.php'); +if (stream_resolve_include_path('baseurl.php')) { + include_once('baseurl.php'); +} /** * PHP settings: