aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/index.php b/index.php
index ea7bf4d1..7383348e 100755
--- a/index.php
+++ b/index.php
@@ -1439,10 +1439,14 @@ function renderPage()
1439 pubsubhub(); 1439 pubsubhub();
1440 1440
1441 // If we are called from the bookmarklet, we must close the popup: 1441 // If we are called from the bookmarklet, we must close the popup:
1442 if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo '<script>self.close();</script>'; exit; } 1442 if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) {
1443 $returnurl = ( !empty($_POST['returnurl']) ? escape($_POST['returnurl']) : '?' ); 1443 echo '<script>self.close();</script>';
1444 $returnurl .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited. 1444 exit;
1445 }
1446
1447 $returnurl = !empty($_POST['returnurl']) ? escape($_POST['returnurl']): '?';
1445 $location = generateLocation($returnurl, $_SERVER['HTTP_HOST'], array('addlink', 'post', 'edit_link')); 1448 $location = generateLocation($returnurl, $_SERVER['HTTP_HOST'], array('addlink', 'post', 'edit_link'));
1449 $location .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited.
1446 header('Location: '. $location); // After saving the link, redirect to the page the user was on. 1450 header('Location: '. $location); // After saving the link, redirect to the page the user was on.
1447 exit; 1451 exit;
1448 } 1452 }