Revision 1383
Added by FrankH almost 14 years ago
- Security fix for news module
- Some more Security fixes, thanks to Gerben van Veenendaal
index.php | ||
---|---|---|
35 | 35 |
* Clients akzeptieren jedoch auch relative URIs. |
36 | 36 |
*/ |
37 | 37 |
$host = $_SERVER['HTTP_HOST']; |
38 |
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
|
|
38 |
$uri = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
|
|
39 | 39 |
$file = 'install/index.php'; |
40 | 40 |
$target_url = 'http://'.$host.$uri.'/'.$file; |
41 | 41 |
header('Location: '.$target_url); |
Also available in: Unified diff