[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: bugs/html/wizard
From: Martijn Klingens <mklingens () yahoo ! com>
Date: 2001-12-15 16:43:04
[Download RAW message or body]
bugs/html/wizard index.php,1.7,1.8
Author: mklingens
Sat Dec 15 16:42:54 UTC 2001
Modified Files:
index.php
Log Message:
Fix for obscure problem where a user could enter the bug wizard with the URL
http://bugs.kde.org//wizard <----- Note the double slash after the server name
Clicking next used to go to 'php_self', which resolved to '//wizard/index.php',
so 'wizard' was considered the server name instead of the subdir on the current
dir. Initially I thought this was a Konq problem, but even Netscape does this,
so I fixed the site now.
$layout->setShowNavBar( true );
$layout->beginOutput();
+ $postURL=$HTTP_SERVER_VARS[PHP_SELF];
+ if( strpos( $postURL, "//" ) === 0 )
+ $postURL = substr( $postURL, 1 );
echo(
"<h1>KDE Bug Report Wizard</h1>\n" .
"<form name=\"bugWizard\" id=\"bugWizard\" method=\"post\" " .
- "action=\"$HTTP_SERVER_VARS[PHP_SELF]\">\n" .
+ "action=\"$postURL\">\n" .
"<h2>$title</h2>\n" );
if( !$config->useSessions )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic