diff options
-rw-r--r-- | index.php | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -432,7 +432,7 @@ if (isset($_POST['login'])) | |||
432 | // Optional redirect after login: | 432 | // Optional redirect after login: |
433 | if (isset($_GET['post'])) { | 433 | if (isset($_GET['post'])) { |
434 | $uri = '?post='. urlencode($_GET['post']); | 434 | $uri = '?post='. urlencode($_GET['post']); |
435 | foreach (array('description', 'source', 'title') as $param) { | 435 | foreach (array('description', 'source', 'title', 'tags') as $param) { |
436 | if (!empty($_GET[$param])) { | 436 | if (!empty($_GET[$param])) { |
437 | $uri .= '&'.$param.'='.urlencode($_GET[$param]); | 437 | $uri .= '&'.$param.'='.urlencode($_GET[$param]); |
438 | } | 438 | } |
@@ -461,7 +461,7 @@ if (isset($_POST['login'])) | |||
461 | $redir = '&username='. $_POST['login']; | 461 | $redir = '&username='. $_POST['login']; |
462 | if (isset($_GET['post'])) { | 462 | if (isset($_GET['post'])) { |
463 | $redir .= '&post=' . urlencode($_GET['post']); | 463 | $redir .= '&post=' . urlencode($_GET['post']); |
464 | foreach (array('description', 'source', 'title') as $param) { | 464 | foreach (array('description', 'source', 'title', 'tags') as $param) { |
465 | if (!empty($_GET[$param])) { | 465 | if (!empty($_GET[$param])) { |
466 | $redir .= '&' . $param . '=' . urlencode($_GET[$param]); | 466 | $redir .= '&' . $param . '=' . urlencode($_GET[$param]); |
467 | } | 467 | } |
@@ -1044,7 +1044,13 @@ function renderPage($conf, $pluginManager, $LINKSDB) | |||
1044 | // Show login screen, then redirect to ?post=... | 1044 | // Show login screen, then redirect to ?post=... |
1045 | if (isset($_GET['post'])) | 1045 | if (isset($_GET['post'])) |
1046 | { | 1046 | { |
1047 | header('Location: ?do=login&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'')); // Redirect to login page, then back to post link. | 1047 | header( // Redirect to login page, then back to post link. |
1048 | 'Location: ?do=login&post='.urlencode($_GET['post']). | ||
1049 | (!empty($_GET['title'])?'&title='.urlencode($_GET['title']):''). | ||
1050 | (!empty($_GET['description'])?'&description='.urlencode($_GET['description']):''). | ||
1051 | (!empty($_GET['tags'])?'&tags='.urlencode($_GET['tags']):''). | ||
1052 | (!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'') | ||
1053 | ); | ||
1048 | exit; | 1054 | exit; |
1049 | } | 1055 | } |
1050 | 1056 | ||