Sign in
webkit
/
WebKit
/
acc18fc21bb8590523f2ab0e4f6fcd163c893199
/
.
/
LayoutTests
/
imported
/
blink
/
http
/
tests
/
security
/
resources
/
green-if-referrer-is-full-url.php
blob: c9083d3c6aef16b4bafac7ca2d4dbd3cc50cffc4 [
file
] [
log
] [
blame
]
<?
php
header
(
'Content-Type: image/png'
);
if
(
$_SERVER
[
'HTTP_REFERER'
]
!=
'http://127.0.0.1:8000/security/referrer-policy-attribute-img-unsafe-url.html'
)
{
$img
=
'red200x100.png'
;
}
else
{
$img
=
'green250x50.png'
;
}
echo file_get_contents
(
$img
);
?>