mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-06 17:41:01 +00:00
Resolve self depreciation
This commit is contained in:
parent
1ce5164e70
commit
8ef6a14652
6 changed files with 22 additions and 7 deletions
|
@ -518,7 +518,7 @@ class EntryController extends AbstractController
|
|||
);
|
||||
|
||||
// don't redirect user to the deleted entry (check that the referer doesn't end with the same url)
|
||||
$prev = $request->getSession()->get('prevUrl');
|
||||
$prev = $request->getSession()->get('prevUrl', '');
|
||||
$to = (1 !== preg_match('#' . $url . '$#i', $prev) ? $prev : null);
|
||||
|
||||
$redirectUrl = $this->redirectHelper->to($to);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue