We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c503910 commit 5007eb1Copy full SHA for 5007eb1
test/csrfprotector_test.php
@@ -15,6 +15,10 @@ public static function changeRequestType($type)
15
self::$requestType = $type;
16
}
17
18
+ /**
19
+ * Function to check for a string value anywhere within HTTP response headers
20
+ * Returns true on first match of $needle in header names or values
21
+ */
22
public static function checkHeader($needle)
23
{
24
$haystack = xdebug_get_headers();
@@ -25,6 +29,10 @@ public static function checkHeader($needle)
25
29
return false;
26
30
27
31
32
33
+ * Function to return the string value of the last response header
34
+ * identified by name $needle
35
28
36
public static function getHeaderValue($needle)
37
38
0 commit comments