Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188745
ArcanistBlindlyTrustHTTPEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
639 B
Referenced Files
None
Subscribers
None
ArcanistBlindlyTrustHTTPEngineExtension.php
View Options
<?php
final
class
ArcanistBlindlyTrustHTTPEngineExtension
extends
PhutilHTTPEngineExtension
{
const
EXTENSIONKEY
=
'arc.https.blind'
;
private
$domains
=
array
();
public
function
setDomains
(
array
$domains
)
{
foreach
(
$domains
as
$domain
)
{
$this
->
domains
[
phutil_utf8_strtolower
(
$domain
)]
=
true
;
}
return
$this
;
}
public
function
getExtensionName
()
{
return
pht
(
'Arcanist HTTPS Trusted Domains'
);
}
public
function
shouldTrustAnySSLAuthorityForURI
(
PhutilURI
$uri
)
{
$domain
=
$uri
->
getDomain
();
$domain
=
phutil_utf8_strtolower
(
$domain
);
return
isset
(
$this
->
domains
[
$domain
]);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 8, 08:30 (18 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
735303
Default Alt Text
ArcanistBlindlyTrustHTTPEngineExtension.php (639 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment