aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index a8326a2b..cda918df 100644
--- a/index.php
+++ b/index.php
@@ -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 }