]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Fixes #440 - 404 error after editing a link
[github/shaarli/Shaarli.git] / index.php
index 82a6abb343bee4a65ca6b0a8e015365fa66cc170..3022366123a436165f06c1b557eb45bdc5366d06 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1568,7 +1568,7 @@ function renderPage()
             exit;
         }
 
-        $returnurl = !empty($_POST['returnurl']) ? escape($_POST['returnurl']): '?';
+        $returnurl = !empty($_POST['returnurl']) ? $_POST['returnurl'] : '?';
         $location = generateLocation($returnurl, $_SERVER['HTTP_HOST'], array('addlink', 'post', 'edit_link'));
         // Scroll to the link which has been edited.
         $location .= '#' . smallHash($_POST['lf_linkdate']);