1
0
Fork 0
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:
Yassine Guedidi 2023-08-10 00:37:25 +01:00
parent 1ce5164e70
commit 8ef6a14652
6 changed files with 22 additions and 7 deletions

View file

@ -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);