X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=3022366123a436165f06c1b557eb45bdc5366d06;hb=fd50e14cbae78b36112560eab1af11fe095611de;hp=82a6abb343bee4a65ca6b0a8e015365fa66cc170;hpb=5a23950c953e3c8e232cdb69607f91d3e2fac5f5;p=github%2Fshaarli%2FShaarli.git 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']);