Ignore:
Timestamp:
12/02/08 12:49:15 (3 years ago)
Author:
CrawfordCurrie
Message:

Item139: removed oops redirect for error reports. Fixed status header in HTTP responses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/UI.pm

    r1078 r1127  
    183183                # we are already authenticated. 
    184184                my $exception = new Foswiki::OopsException( 
    185                     'accessdenied', 
     185                    'accessdenied', status => 403, 
    186186                    web    => $e->{web}, 
    187187                    topic  => $e->{topic}, 
     
    190190                ); 
    191191 
    192                 $exception->redirect($session); 
     192                $exception->generate($session); 
    193193            } 
    194194        } 
    195195        catch Foswiki::OopsException with { 
    196             shift->redirect($session); 
     196            shift->generate($session); 
    197197        } 
    198198        catch Error::Simple with { 
     
    277277    unless ( $session->{store}->webExists($webName) ) { 
    278278        throw Foswiki::OopsException( 
    279             'accessdenied', 
     279            'accessdenied', status => 403, 
    280280            def    => 'no_such_web', 
    281281            web    => $webName, 
     
    301301    unless ( $session->{store}->topicExists( $webName, $topic ) ) { 
    302302        throw Foswiki::OopsException( 
    303             'accessdenied', 
     303            'accessdenied', status => 403, 
    304304            def    => 'no_such_topic', 
    305305            web    => $webName, 
     
    352352    { 
    353353        throw Foswiki::OopsException( 
    354             'accessdenied', 
     354            'accessdenied', status => 403, 
    355355            def    => 'topic_access', 
    356356            web    => $web, 
Note: See TracChangeset for help on using the changeset viewer.