diff options
author | nodiscc <nodiscc@gmail.com> | 2015-03-05 13:44:40 +0100 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2015-03-05 13:44:40 +0100 |
commit | e894673c3698cc9d6af70c1f8cb497a51f5b0c25 (patch) | |
tree | 8faa01612b06f42b539cc0df6c117d011432543f /index.php | |
parent | 01b8f52718f5136fb7de54e09b47ae4523aec9e8 (diff) | |
parent | 9811b3efbca58bf464752e401d278fe677089a9c (diff) | |
download | Shaarli-e894673c3698cc9d6af70c1f8cb497a51f5b0c25.tar.gz Shaarli-e894673c3698cc9d6af70c1f8cb497a51f5b0c25.tar.zst Shaarli-e894673c3698cc9d6af70c1f8cb497a51f5b0c25.zip |
Merge pull request #140 from nodiscc/master
Various fixes
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1560,6 +1560,7 @@ function renderPage() | |||
1560 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script>self.close();</script>'; exit; } | 1560 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script>self.close();</script>'; exit; } |
1561 | $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); | 1561 | $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); |
1562 | $returnurl .= '#'.smallHash($linkdate); // Scroll to the link which has been edited. | 1562 | $returnurl .= '#'.smallHash($linkdate); // Scroll to the link which has been edited. |
1563 | if (strstr($returnurl, "do=addlink")) { $returnurl = '?'; } //if we come from ?do=addlink, set returnurl to homepage instead | ||
1563 | header('Location: '.$returnurl); // After saving the link, redirect to the page the user was on. | 1564 | header('Location: '.$returnurl); // After saving the link, redirect to the page the user was on. |
1564 | exit; | 1565 | exit; |
1565 | } | 1566 | } |