Esempio n. 1
0
 public static function GenerateReplacement($matches)
 {
     $pair = CSRF::GenerateToken();
     return $matches[0] . "\n\t\t<input name=\"_CPHP_CSRF_KEY\" type=\"hidden\" value=\"{$pair['key']}\">\n\t\t<input name=\"_CPHP_CSRF_TOKEN\" type=\"hidden\" value=\"{$pair['token']}\">";
 }