|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-08 16:22 UTC] danielc at analysisandsolutions dot com
[2004-01-08 16:59 UTC] danielc at analysisandsolutions dot com
[2004-01-09 16:02 UTC] mj@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 19:00:02 2025 UTC |
Description: ------------ Hi: To make the Login link at the top of each page really functional, it needs to include the URI query string, if any. This way, one can be looking at a bug, log in and then edit the bug. Right now, login just takes maintainers back to the main bugs page, not the bug they were looking at. A patch is below. Thanks! Expected result: ---------------- Index: pear-format-html.php =================================================================== RCS file: /repository/pearweb/include/pear-format-html.php,v retrieving revision 1.75 diff -u -r1.75 pear-format-html.php --- pear-format-html.php 5 Jan 2004 20:07:21 -0000 1.75 +++ pear-format-html.php 8 Jan 2004 20:53:35 -0000 @@ -118,7 +118,7 @@ <?php if (empty($_COOKIE['PEAR_USER'])) { - print_link('/login.php?redirect=' . $_SERVER['PHP_SELF'], 'Login', false, 'class="menuBlack"'); + print_link('/login.php?redirect=' . $_SERVER['PHP_SELF'] . ($_SERVER['QUERY_STRING'] ? "?{$_SERVER['QUERY_STRING']}" : ''), 'Login', false, 'class="menuBlack"'); } else { print '<span class="menuWhite"><small>'; print '<a href="/user/' . $_COOKIE['PEAR_USER'] . '">logged in as ';