Project

General

Profile

« Previous | Next » 

Revision 1833

Added by Dietmar over 11 years ago

  1. security fix CRLF injection/HTTP response splitting

View differences:

index.php
16 16
*/
17 17

  
18 18
// Include the configuration file
19
if(!defined('WB_URL') && file_exists(realpath('../../../config.php'))) {
20
	require('../../../config.php');
19
$config_file = realpath('../../../config.php');
20
if(file_exists($config_file) && !defined('WB_URL'))
21
{
22
	require_once($config_file);
21 23
}
22 24
// Include the language file
23 25
require(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php');
......
34 36
$website_title = $results['value'];
35 37

  
36 38
// Check if the user has already submitted the form, otherwise show it
37
if(isset($_POST['email']) AND $_POST['email'] != "") {
38 39

  
40
if(isset($_POST['email']) && is_string($_POST['email']) && $_POST['email'] != "") {
41

  
39 42
	$email = htmlspecialchars($_POST['email'],ENT_QUOTES);
40 43

  
41 44
	// Check if the email exists in the database
......
159 162
				'LOGIN_DISPLAY_HIDDEN' => !$admin->is_authenticated() ? 'hidden' : '',
160 163
				'LOGIN_DISPLAY_NONE' => !$admin->is_authenticated() ? 'none' : '',
161 164
				'URL_HELP' => 'http://www.websitebaker.org/',
165
				'URL' => ADMIN_URL."/start/index.php",
162 166
				'TEXT_NEED_TO_LOGIN' => $TEXT['NEED_TO_LOGIN']
163 167
				)
164 168
		);

Also available in: Unified diff