#1500 - Infinite loop in Blog's RSS widget

This commit is contained in:
Andrew O'Neil 2007-11-01 21:56:44 +00:00
parent 0f1b7abccb
commit acd6e1a6c5
1 changed files with 10 additions and 1 deletions

View File

@ -201,6 +201,15 @@ class BlogHolder_Controller extends Page_Controller {
return array();
}
function defaultAction($action) {
// Protection against infinite loops when an RSS widget pointing to this page is added to this page
if(stristr($_SERVER['HTTP_USER_AGENT'], 'SimplePie')) {
return $this->rss();
}
return parent::defaultAction($action);
}
}
@ -228,4 +237,4 @@ class BlogEntry_Form extends Form {
}
}
?>
?>