aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-02-04 20:24:17 +0100
committerArthurHoaro <arthur@hoa.ro>2016-02-04 20:24:17 +0100
commitfd50e14cbae78b36112560eab1af11fe095611de (patch)
tree36437700e0cfd7ffb5b51a624125cc38dc1287c5
parent5a23950c953e3c8e232cdb69607f91d3e2fac5f5 (diff)
downloadShaarli-fd50e14cbae78b36112560eab1af11fe095611de.tar.gz
Shaarli-fd50e14cbae78b36112560eab1af11fe095611de.tar.zst
Shaarli-fd50e14cbae78b36112560eab1af11fe095611de.zip
Fixes #440 - 404 error after editing a link
Remove unnecessary escape().
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 82a6abb3..30223661 100644
--- a/index.php
+++ b/index.php
@@ -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']);