From: ArthurHoaro Date: Thu, 4 Feb 2016 19:24:17 +0000 (+0100) Subject: Fixes #440 - 404 error after editing a link X-Git-Tag: v0.6.4~14^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fd50e14cbae78b36112560eab1af11fe095611de;p=github%2Fshaarli%2FShaarli.git Fixes #440 - 404 error after editing a link Remove unnecessary escape(). --- diff --git a/index.php b/index.php index 82a6abb3..30223661 100644 --- 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']);