Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895303
ArcanistBlindlyTrustHTTPEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Jan 19 2025, 21:14 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115718
Default Alt Text
ArcanistBlindlyTrustHTTPEngineExtension.php (639 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment