projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25314c3
)
CRM-14092 - CRM_Utils_Check_Security::isBrowseable - Fix warning
author
Tim Otten
<totten@civicrm.org>
Thu, 6 Feb 2014 15:58:44 +0000
(07:58 -0800)
committer
Tim Otten
<totten@civicrm.org>
Thu, 6 Feb 2014 15:58:44 +0000
(07:58 -0800)
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
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Check/Security.php
b/CRM/Utils/Check/Security.php
index 30c1e5ce414a286e048ad5c5b06ae6ed4eadf8c2..3c8ed4a079728be042543ea9d8aa41cdd525010f 100644
(file)
--- 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;
}