Index: scripts/cron_tasks.inc.http.10.apache.php
===================================================================
--- scripts/cron_tasks.inc.http.10.apache.php	(.../1.4.2.1)	(Revision 2743)
+++ scripts/cron_tasks.inc.http.10.apache.php	(.../1.4.2.2)	(Revision 2743)
@@ -144,11 +144,11 @@
 
 				if($domain['openbasedir_path'] == '1')
 				{
-					$php_options_text.= '  php_admin_value open_basedir "' . $domain['customerroot'] . $_phpappendopenbasedir . "\"\n";
+					$php_options_text.= '  php_admin_value open_basedir "' . makeCorrectDir($domain['customerroot']) . $_phpappendopenbasedir . "\"\n";
 				}
 				else
 				{
-					$php_options_text.= '  php_admin_value open_basedir "' . $domain['documentroot'] . $_phpappendopenbasedir . "\"\n";
+					$php_options_text.= '  php_admin_value open_basedir "' . makeCorrectDir($domain['documentroot']) . $_phpappendopenbasedir . "\"\n";
 				}
 			}
 
Index: scripts/cron_tasks.inc.http.15.apache_fcgid.php
===================================================================
--- scripts/cron_tasks.inc.http.15.apache_fcgid.php	(.../1.4.2.1)	(Revision 2743)
+++ scripts/cron_tasks.inc.http.15.apache_fcgid.php	(.../1.4.2.2)	(Revision 2743)
@@ -166,11 +166,11 @@
 			{
 				if($domain['openbasedir_path'] == '0')
 				{
-					$openbasedir = $domain['documentroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
+					$openbasedir = makeCorrectDir($domain['documentroot']) . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
 				}
 				else
 				{
-					$openbasedir = $domain['customerroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
+					$openbasedir = makeCorrectDir($domain['customerroot']) . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
 				}
 
 				$openbasedir = explode(':', $openbasedir);
Index: lib/functions.php
===================================================================
--- lib/functions.php	(.../1.4.2.1)	(Revision 2743)
+++ lib/functions.php	(.../1.4.2.2)	(Revision 2743)
@@ -814,11 +814,13 @@
 function makeSecurePath($path)
 {
 	$search = Array(
+		'#\:+#',
 		'#/+#',
 		'#\.+#',
 		'#\0+#'
 	);
 	$replace = Array(
+		'',
 		'/',
 		'.',
 		''
@@ -1231,7 +1233,7 @@
 	$ok = false;
 	foreach($allowed_commands as $allowed_command)
 	{
-		if(strpos($exec_string, $allowed_command) == 0
+		if(strpos($exec_string, $allowed_command) === 0
 		   && (strlen($exec_string) === ($allowed_command_pos = strlen($allowed_command)) || substr($exec_string, $allowed_command_pos, 1) === ' '))
 		{
 			$ok = true;
Index: lib/tables.inc.php
===================================================================
--- lib/tables.inc.php	(.../1.4.2.1)	(Revision 2743)
+++ lib/tables.inc.php	(.../1.4.2.2)	(Revision 2743)
@@ -89,6 +89,6 @@
 define('PACKAGE_LOCKED', 1);
 define('PACKAGE_ENABLED', 2);
 $version = '1.4.2';
-$patchlevel = '.1';
+$patchlevel = '.2';
 
 ?>
\ No newline at end of file
