webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions | Variables
load-and-check-referer.php File Reference

Functions

 contentType ($path)
 

Variables

 $path = $_GET['path']
 
 $expectedReferer = $_GET['expected-referer']
 
 $referer = $_SERVER["HTTP_REFERER"]
 
if($expectedReferer==$referer &&file_exists($path)) else
 

Function Documentation

◆ contentType()

contentType (   $path)

Variable Documentation

◆ $expectedReferer

$expectedReferer = $_GET['expected-referer']

◆ $path

$path = $_GET['path']

◆ $referer

$referer = $_SERVER["HTTP_REFERER"]

◆ else

if ( $expectedReferer==$referer &&file_exists( $path)) else
Initial value:
{
header('HTTP/1.1 404 Not Found')
const char * header
Definition: gflags_completions.cc:514