PacketFence - BTS - PacketFence | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001251 | PacketFence | web admin | public | 2011-08-24 09:10 | 2011-09-21 22:16 |
Reporter | psnizek | ||||
Assigned To | obilodeau | ||||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | 2.2.1 | ||||
Target Version | Fixed in Version | 3.0.0 | |||
fixed in git revision | |||||
fixed in mtn revision | 3d07d816bc63c929e842d49bc304909661610f99 | ||||
Summary | 0001251: eliminate php_value register_long_arrays from httpd.conf | ||||
Description | If you replace $HTTP_*_VARS against $_SERVER in the corresponding php files (see patches below), you will be able to eliminate register_long_arrays in httpd.conf. $HTTP_*_VARS are deprecated as of PHP 4.1. | ||||
Steps To Reproduce | |||||
Additional Information | --- common.php.orig 2011-07-21 17:10:06.695112906 +0200 +++ common.php 2011-08-08 16:58:52.433995623 +0200 @@ -1255,7 +1255,7 @@ function PrintSubNav($menu){ $formname = "form_$error_$line"; print "<form name='$formname' action='http://www.packetfence.org/bug_report.php' [^] method='post'>"; - print " <input type='hidden' name='referrer' value='https://{$errcontext[HTTP_SERVER_VARS][HTTP_HOST]}{$errcontext[HTTP_SERVER_VARS][SCRIPT_NAME]}'>"; [^] + print " <input type='hidden' name='referrer' value='https://{$errcontext[$_SERVER][HTTP_HOST]}{$errcontext[$_SERVER][SCRIPT_NAME]}'>"; [^] print " <input type='hidden' name='context' value='".serialize($errcontext)."'>"; print " <input type='hidden' name='error' value='{$error_types[$severity]}: $error in $file on line $line'>"; print "</form>"; --- login.php.orig 2011-08-08 15:54:17.860369600 +0200 +++ login.php 2011-07-21 17:14:22.642212929 +0200 @@ -196,7 +196,7 @@ return false; } -$abs_url="https://$HTTP_SERVER_VARS[HTTP_HOST]"; [^] +$abs_url="https://$_SERVER[HTTP_HOST]"; [^] if(!function_exists('session_start')){ die("<div id='error'>Error: Your version of PHP does not have session support. Session support is needed for this application</div>"); --- check_login.php.orig 2011-07-21 17:17:57.713018815 +0200 +++ check_login.php 2011-07-21 17:18:11.445772014 +0200 @@ -28,7 +28,7 @@ session_start(); $timeout = 3600; // session timeout in seconds - $abs_url="https://$HTTP_SERVER_VARS[HTTP_HOST]"; [^] + $abs_url="https://$_SERVER[HTTP_HOST]"; [^] require_once 'common/helpers.inc'; require_once 'common/adminperm.inc'; | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-08-24 09:10 | psnizek | New Issue | |||
2011-09-08 12:12 | obilodeau | Status | new => assigned | ||
2011-09-08 12:12 | obilodeau | Assigned To | => obilodeau | ||
2011-09-08 12:23 | obilodeau | Note Added: 0002188 | |||
2011-09-08 12:36 | obilodeau | mtn revision | => 3d07d816bc63c929e842d49bc304909661610f99 | ||
2011-09-08 12:36 | obilodeau | Note Added: 0002189 | |||
2011-09-08 12:36 | obilodeau | Status | assigned => resolved | ||
2011-09-08 12:36 | obilodeau | Fixed in Version | => trunk | ||
2011-09-08 12:36 | obilodeau | Resolution | open => fixed | ||
2011-09-21 22:07 | obilodeau | Fixed in Version | trunk => 3.0.0 | ||
2011-09-21 22:15 | obilodeau | Note Added: 0002243 | |||
2011-09-21 22:16 | obilodeau | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|