mirror of
https://github.com/jquery/jquery.git
synced 2026-02-18 10:21:32 -05:00
Fix #14503: Cast to string before setting XHR header. Close gh-1427.
This commit is contained in:
committed by
Richard Gibson
parent
5f325b1bee
commit
27b22f4ef5
@@ -14,5 +14,10 @@ foreach( $_SERVER as $key => $value ) {
|
||||
}
|
||||
|
||||
foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
|
||||
echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
|
||||
|
||||
// Only echo if key exists in the header
|
||||
if ( isset( $headers[ strtoupper( $key ) ] ) ) {
|
||||
echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user