Opened 6 years ago
Closed 6 years ago
#1484508 closed Bugs (fixed)
getallheaders() in index.php exist only in php built as apache module
| Reported by: | ghostks | Owned by: | thomasb |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.1-rc2 |
| Component: | Core functionality | Version: | git-master |
| Severity: | major | Keywords: | |
| Cc: |
Description
index.php
check client X-header to verify request origin
if ($OUTPUT->ajax_call)
{
$hdrs = getallheaders();
if (empty($hdrsX-RoundCube-Referer?) && empty($CONFIGdevel_mode?))
{
header('HTTP/1.1 404 Not Found');
die("Invalid Request");
}
}
This code always will fail on all PHP installations without apache module. This function is only supported when PHP is installed as an Apache module:
[11-Aug-2007 12:29:54] PHP Fatal error: Call to undefined function getallheaders() in /var/www/index.php on line 224
I'm running PHP as fastcgi binary.
Change History (2)
comment:1 Changed 6 years ago by thomasb
- Milestone set to 0.1-rc2
- Owner set to thomasb
- Status changed from new to assigned
comment:2 Changed 6 years ago by thomasb
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in trunk [88f66ec8]
Note: See
TracTickets for help on using
tickets.

Need to add an alternative from http://ch2.php.net/manual/en/function.getallheaders.php