Fixes #440 - 404 error after editing a link

Remove unnecessary escape().
This commit is contained in:
ArthurHoaro 2016-02-04 20:24:17 +01:00
parent 5a23950c95
commit fd50e14cba

View file

@ -1568,7 +1568,7 @@ function renderPage()
exit; 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')); $location = generateLocation($returnurl, $_SERVER['HTTP_HOST'], array('addlink', 'post', 'edit_link'));
// Scroll to the link which has been edited. // Scroll to the link which has been edited.
$location .= '#' . smallHash($_POST['lf_linkdate']); $location .= '#' . smallHash($_POST['lf_linkdate']);