numerous fixes

This commit is contained in:
Matthew Wilson 2005-05-17 17:17:01 +00:00
parent 45650303af
commit 87d2b64593
3 changed files with 19 additions and 21 deletions

View file

@ -150,8 +150,8 @@ sub www_view {
if ($session{var}{adminOn}) {
return $self->getContainer->www_view;
}
WebGUI::HTTP::setRedirect($self->get("redirectUrl"));
return undef;
WebGUI::HTTP::setRedirect($self->get("redirectUrl")) unless $self->newByUrl($self->get("redirectUrl"))->getUrl eq $self->getUrl;
return "Redirect is self-referential";
}