MODx Bug/Feature Tracker and Feature Requests
Welcome to the MODx CMS Tracker. Please choose the appropriate project from the drop down menu and provide as much information as possible regarding your server environment and browser. Thanks!
FS#1043 — DocumentParse::checkCache() shows incorrect error page.
| Task Type | Bug Report |
|---|---|
| Category | Core Distribution |
| Status | Unconfirmed |
| Assigned To | No-one |
| Operating System | All |
| Severity | High |
|---|---|
| Priority | Normal |
| Reported Version | 0.9.6.1 |
| Due in Version | Undecided |
| Due Date | Undecided |
| Percent Complete |
|
Details
It's possible DocumentParse::checkCache() shows incorrect error page.Because '$seclimit' isn't initialized, when '$this->config['unauthorized_page']' is false.
if (!$pass) {
if ($this->config['unauthorized_page']) {
// check if file is not public
$tbldg= $this->getFullTableName("document_groups");
$secrs= $this->dbQuery("SELECT id FROM $tbldg WHERE document = '" . $id . "' LIMIT 1;");
if ($secrs)
$seclimit= mysql_num_rows($secrs);
}
if ($seclimit > 0) {
// match found but not publicly accessible, send the visitor to the unauthorized_page
$this->sendUnauthorizedPage();
exit; // stop here
} else {
// no match found, send the visitor to the error_page
$this->sendErrorPage();
exit; // stop here
}
}
This task depends upon
This task blocks these from closing