|
|
|
@ -101,7 +101,7 @@ sub view {
|
|
|
|
|
$self->app->log->error($@); |
|
|
|
|
$@ = "internal error" if ($@ =~ m|at \S+ line \d+|oi); |
|
|
|
|
$self->flash({'result' => $@}); |
|
|
|
|
$self->redirect_to("/zerobin2"); |
|
|
|
|
$self->redirect_to("/zerobin"); |
|
|
|
|
return; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -148,13 +148,13 @@ sub save {
|
|
|
|
|
syntax => $syntax, |
|
|
|
|
}); |
|
|
|
|
$self->_content_save($time, $paste); |
|
|
|
|
$self->redirect_to("/zerobin2/$time"); 1; |
|
|
|
|
$self->redirect_to("/zerobin/$time"); 1; |
|
|
|
|
} or do { |
|
|
|
|
chomp $@; |
|
|
|
|
$self->app->log->error($@); |
|
|
|
|
$@ = "internal error" if ($@ =~ m|at \S+ line \d+|oi); |
|
|
|
|
$self->flash({'result' => $@}); |
|
|
|
|
$self->redirect_to("/zerobin2"); |
|
|
|
|
$self->redirect_to("/zerobin"); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
$self->rendered; |
|
|
|
@ -183,7 +183,7 @@ sub prune {
|
|
|
|
|
$self->stash({result => $@}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
$self->redirect_to("/zerobin2"); |
|
|
|
|
$self->redirect_to("/zerobin"); |
|
|
|
|
$self->rendered; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|