netnoise Reply #1, 5 years, 9 months ago
This version of document.parser.inc.php fixes some issues in MODx which were published on yesterday.
Please update your current 0.9.1 MODx installations as soon a possible.
How to patch Open manager/includes/document.parser.class.inc.php in your favourite text editor and replace the function "getDocumentIdentifier" with the code below.
Please update your current 0.9.1 MODx installations as soon a possible.
How to patch Open manager/includes/document.parser.class.inc.php in your favourite text editor and replace the function "getDocumentIdentifier" with the code below.
function getDocumentIdentifier($method) {
// function to test the query and find the retrieval method
$docIdentifier= $this->config['site_start'];
switch($method) {
case "alias" :
$docIdentifier= $this->db->escape($_REQUEST['q']);
break;
case "id" :
if(!is_numeric($_REQUEST['id'])) {
$this->messageQuit("ID passed in request is NaN!");
} else {
$docIdentifier= intval($_REQUEST['id']);
}
break;
default :
break;
}
return $docIdentifier;
}