bug_7397.diff

Administrator Admin, 2008-02-05 16:51

Download (2.59 KB)

View differences:

t3lib/config_default.php (Arbeitskopie)
88 88
		'systemLogLevel' => 0,					// Integer: Only messages with same or higher severity are logged; 0 is info, 1 is notice, 2 is warning, 3 is error, 4 is fatal error.
89 89
		'maxFileNameLength' => 60,				// Integer, This is the maximum file name length. The value will be taken into account by basic file operations like renaming or creation of files and folders.
90 90
		'UTF8filesystem' => 0,					// Boolean: If true and [BE][forceCharset] is set to utf-8, then TYPO3 uses utf-8 to store file names. This allows for accented Latin letters as well as any other non-latin characters like Cyrillic and Chinese.
91
		'proxyFixClientAddress' => false,			// Boolean: If it appears like all client requests come from the same host, then this is probably because there is a proxy between the server and the clients. If this setting is enabled, TYPO3 sends the HTTP_X_FORWARDED_FOR header instead of REMOTE_ADDR and REMOTE_HOST, as some proxy servers serve the original IP in this field instead. WARNING: Do not use this unless you are sure that your requests come from such a proxy. Otherwise, the field could easily be faked, which is a problem when it comes to security check...
92

  
91 93
	),
92 94
	'EXT' => Array (	// Options related to the Extension Management
93 95
		'noEdit' => 1,							// Boolean: If set, the Extension Manager does NOT allow extension files to be edited! (Otherwise both local and global extensions can be edited.)
t3lib/class.t3lib_div.php (Arbeitskopie)
3193 3193
					$retVal = $_SERVER['PATH_INFO'];
3194 3194
				}
3195 3195
			break;
3196
				// These are let through without modification
3196
				// Deal with some proxy servers that hide the clients IP address/hostname
3197 3197
			case 'REMOTE_ADDR':
3198 3198
			case 'REMOTE_HOST':
3199
				if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['proxyFixClientAddress']) {	// This is for proxy servers that send their own IP instead of the original REMOTE_HOST value. Instead, the remote host is stored in HTTP_X_FORWARDED_FOR.
3200
					$retVal = (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && strlen($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER[$getEnvName];
3201
				} else {
3202
					$retVal = $_SERVER[$getEnvName];
3203
				}
3204
			break;
3205
				// These are let through without modification
3199 3206
			case 'HTTP_REFERER':
3200 3207
			case 'HTTP_HOST':
3201 3208
			case 'HTTP_USER_AGENT':