root/LayoutTests/http/tests/security/resources/credentials-in-referer.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
header("Cache: no-cache, no-store");

$refer = $_SERVER['HTTP_REFERER'];
if ($refer && stristr($refer, "login"))
    print("log('External script: FAIL')");
else 
    print("log('External script: PASS')");
?>

/* [<][>][^][v][top][bottom][index][help] */