Ignore:
Timestamp:
11/22/10 12:54:02 (14 years ago)
Author:
nanardon
Message:
  • start adding test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Root.pm

    r16 r17  
    2525sub begin : Private { 
    2626    my ( $self, $c ) = @_; 
     27 
     28    if ($c->req->path =~ m:[^/]+\/$:) { 
     29        my $path = $c->req->path; 
     30        $path =~ s:/*$::; 
     31        $c->res->redirect($c->uri_for("/$path")); 
     32        return; 
     33    } 
    2734 
    2835    if (($c->req->query_keywords || '') =~ /([^\w]|^)json([^\w]|$)/ || 
     
    8087    } elsif (!$c->stash->{current_view}) { 
    8188    } 
    82     $c->stash->{$c->action} = $c->stash->{xmlrpc}; 
     89    $c->stash->{data} = $c->stash->{xmlrpc}; 
    8390    $c->model('Base')->storage->dbh->rollback; 
    8491} 
Note: See TracChangeset for help on using the changeset viewer.