--- mambo/branches/4.6/includes/core.classes.php 2007/12/21 20:50:32 1491 +++ mambo/branches/4.6/includes/core.classes.php 2007/12/21 21:56:38 1492 @@ -503,7 +503,7 @@ if ( $option == 'com_content') { require_once($this->rootPath().'/components/com_content/content.class.php'); $handler =& contentHandler::getInstance(); - $this->Itemid = $handler->getItemid(mosGetParam($_REQUEST, 'id', 0 )); + $this->Itemid = (int)$handler->getItemid(mosGetParam($_REQUEST, 'id', 0 )); $_REQUEST['Itemid'] = $this->Itemid; } else { @@ -515,7 +515,7 @@ } } } - return $option; + return trim(htmlspecialchars($option)); } /**