From fd50e14cbae78b36112560eab1af11fe095611de Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 4 Feb 2016 20:24:17 +0100 Subject: [PATCH] Fixes #440 - 404 error after editing a link Remove unnecessary escape(). --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 82a6abb..3022366 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']);