Changeset 809 in subversion for trunk/roundcubemail/program/include/rcube_shared.inc
- Timestamp:
- Sep 24, 2007 4:42:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_shared.inc
r741 r809 531 531 */ 532 532 function rc_request_header($name) 533 {533 { 534 534 if (function_exists('getallheaders')) 535 { 536 $hdrs = getallheaders(); 537 $hdrs = array_change_key_case($hdrs, CASE_UPPER); 535 { 536 $hdrs = array_change_key_case(getallheaders(), CASE_UPPER); 538 537 $key = strtoupper($name); 539 }540 else 541 {538 } 539 else 540 { 542 541 $key = 'HTTP_' . strtoupper(strtr($name, '-', '_')); 543 542 $hdrs = array_change_key_case($_SERVER, CASE_UPPER); 544 } 545 if (isset($hdrs[$key])) 546 { 547 return $hdrs[$key]; 548 } 549 return null; 543 } 544 545 return $hdrs[$key]; 550 546 } 551 547
Note: See TracChangeset
for help on using the changeset viewer.
