'www.example.com',
'www.example.com',
'canonical URL is trusted',
- TRUE
+ TRUE,
];
// Tests missing hostname for HTTP/1.0 compatibility where the Host
'example.com',
'www.example.com',
'host from settings is trusted',
- TRUE
+ TRUE,
];
$data[] = [
'subdomain.example.com',
'www.example.com',
'host from settings is trusted',
- TRUE
+ TRUE,
];
$data[] = [
'www.example.org',
'www.example.com',
'host from settings is trusted',
- TRUE
+ TRUE,
];
$data[] = [
'example.org',
'www.example.com',
'host from settings is trusted',
- TRUE
+ TRUE,
];
// Tests mismatch.
'www.blackhat.com',
'www.example.com',
'unspecified host is untrusted',
- FALSE
+ FALSE,
];
return $data;
namespace {
if (!function_exists('drupal_valid_test_ua')) {
+
function drupal_valid_test_ua($new_prefix = NULL) {
return FALSE;
}
+
}
}