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:
f29c5bd
)
CRM-21629 System Check: Set User Agent to security filters accept check
author
Tommy Bobo
<tommy@aghstrategies.com>
Fri, 5 Jan 2018 16:14:00 +0000
(11:14 -0500)
committer
Tommy Bobo
<tommy@aghstrategies.com>
Fri, 5 Jan 2018 16:22:00 +0000
(11:22 -0500)
CRM/Utils/Check/Component/Env.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Check/Component/Env.php
b/CRM/Utils/Check/Component/Env.php
index 294547dac59015095f6b1953c9a7cf8f660bf1da..5492bc45e71553a5996992db41aa571b4aefff8a 100644
(file)
--- a/
CRM/Utils/Check/Component/Env.php
+++ b/
CRM/Utils/Check/Component/Env.php
@@
-898,6
+898,11
@@
class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component {
if (CRM_Core_Config::singleton()->userFramework == 'UnitTests') {
return $messages;
}
+ // CRM-21629 Set User Agent to avoid being blocked by filters
+ stream_context_set_default(array(
+ 'http' => array('user_agent' => 'CiviCRM'),
+ ));
+
// Does arrow.png exist where we expect it?
$arrowUrl = CRM_Core_Config::singleton()->userFrameworkResourceURL . 'packages/jquery/css/images/arrow.png';
$headers = get_headers($arrowUrl);