From 21acec2cb426ae974c873d963cb7432a7e461bf6 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 6 Feb 2014 07:58:44 -0800 Subject: [PATCH] CRM-14092 - CRM_Utils_Check_Security::isBrowseable - Fix warning We don't care if there's an HTTP 404 when checking for browsability -- because 404 is another of saying "not browseable!" --- CRM/Utils/Check/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Check/Security.php b/CRM/Utils/Check/Security.php index 30c1e5ce41..3c8ed4a079 100644 --- a/CRM/Utils/Check/Security.php +++ b/CRM/Utils/Check/Security.php @@ -261,7 +261,7 @@ class CRM_Utils_Check_Security { // this could be a new system with uploads yet -- so we'll make a file file_put_contents("$dir/$file", "delete me"); - $content = file_get_contents("$url"); + $content = @file_get_contents("$url"); if (stristr($content, $file)) { $result = TRUE; } -- 2.25.1