Package: phpmyadmin
Version: 4:2.6.2-3sarge1
Severity: normal
Tags: patch

We use phpmyadmin.web3.unt.edu as a proxy to an apache server on the mysql db 
machine, (where we run phpmyadmin).

The apache documentroot on the mysql db machine is:
/var/www

phpmyadmin resides at:
/var/www/phpmyadmin

The proxy uses:
/var/www/phpmyadmin

as the root of the vhost.

When clicking on Privileges->User overview->(any initial or show all), the 
hyperlink looks like:

<tr><td><a href="/phpmyadmin/server_privileges.php?token=8f...

Unfortunately, that throws a 404 not found, as the usage of PHP_SELF adds 
another /phpmyadmin to the string, looking for server_privileges.php in:
/var/www/phpmyadmin/phpmyadmin/server_privileges.php

instead of:
/var/www/phpmyadmin/server_privileges.php

In this patch, I replaced the usage of PHP_SELF with ./server_privileges.php, 
which is used throughout the rest of the file anyways.

thanks,
speeves


Here is the patch:
--- server_privileges.php.orig  2005-10-28 14:34:29.000000000 -0500
+++ server_privileges.php       2006-12-01 21:14:00.000000000 -0600
@@ -1036,12 +1036,12 @@
             foreach ($array_initials as $tmp_initial => $initial_was_found) {
 
                 if ($initial_was_found) {
-                    echo '<td><a href="' . $PHP_SELF . '?' . $url_query . 
'&amp;initial=' . urlencode($tmp_initial) . '" style="font-size:' . 
$font_bigger . '">' . $tmp_initial . '</a></td>' . "\n";
+                    echo '<td><a href="./server_privileges.php?' . $url_query 
. '&amp;initial=' . urlencode($tmp_initial) . '" style="font-size:' . 
$font_bigger . '">' . $tmp_initial . '</a></td>' . "\n";
                 } else {
                     echo '<td style="font-size:' . $font_bigger . '">' . 
$tmp_initial . '</td>';
                 }
             }
-            echo '<td><a href="' . $PHP_SELF . '?' . $url_query . 
'&amp;showall=1" style="font-size:' . $font_bigger . '">[' . $strShowAll . 
']</a></td>' . "\n";
+            echo '<td><a href="./server_privileges.php?' . $url_query . 
'&amp;showall=1" style="font-size:' . $font_bigger . '">[' . $strShowAll . 
']</a></td>' . "\n";
             echo '</tr></table>';
 
             /**


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages phpmyadmin depends on:
ii  apache2                   2.0.54-5sarge1 next generation, scalable, extenda
ii  apache2-mpm-prefork [http 2.0.54-5sarge1 traditional model for Apache2
ii  debconf                   1.4.30.13      Debian configuration management sy
ii  php4                      4:4.3.10-16    server-side, HTML-embedded scripti
ii  php4-mysql                4:4.3.10-16    MySQL module for php4
ii  ucf                       1.17           Update Configuration File: preserv

-- debconf information:
* phpmyadmin/reconfigure-webserver: apache2
* phpmyadmin/restart-webserver: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to