diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-02-04 20:24:17 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-02-04 20:24:17 +0100 |
commit | fd50e14cbae78b36112560eab1af11fe095611de (patch) | |
tree | 36437700e0cfd7ffb5b51a624125cc38dc1287c5 /index.php | |
parent | 5a23950c953e3c8e232cdb69607f91d3e2fac5f5 (diff) | |
download | Shaarli-fd50e14cbae78b36112560eab1af11fe095611de.tar.gz Shaarli-fd50e14cbae78b36112560eab1af11fe095611de.tar.zst Shaarli-fd50e14cbae78b36112560eab1af11fe095611de.zip |
Fixes #440 - 404 error after editing a link
Remove unnecessary escape().
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1568,7 +1568,7 @@ function renderPage() | |||
1568 | exit; | 1568 | exit; |
1569 | } | 1569 | } |
1570 | 1570 | ||
1571 | $returnurl = !empty($_POST['returnurl']) ? escape($_POST['returnurl']): '?'; | 1571 | $returnurl = !empty($_POST['returnurl']) ? $_POST['returnurl'] : '?'; |
1572 | $location = generateLocation($returnurl, $_SERVER['HTTP_HOST'], array('addlink', 'post', 'edit_link')); | 1572 | $location = generateLocation($returnurl, $_SERVER['HTTP_HOST'], array('addlink', 'post', 'edit_link')); |
1573 | // Scroll to the link which has been edited. | 1573 | // Scroll to the link which has been edited. |
1574 | $location .= '#' . smallHash($_POST['lf_linkdate']); | 1574 | $location .= '#' . smallHash($_POST['lf_linkdate']); |