]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fixes #440 - 404 error after editing a link 460/head
authorArthurHoaro <arthur@hoa.ro>
Thu, 4 Feb 2016 19:24:17 +0000 (20:24 +0100)
committerArthurHoaro <arthur@hoa.ro>
Thu, 4 Feb 2016 19:24:17 +0000 (20:24 +0100)
Remove unnecessary escape().

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']);