Project

General

Profile

« Previous | Next » 

Revision 1859

Added by Dietmar almost 12 years ago

  1. bugfix mkdir(): Invalid argument if create acessfile

View differences:

save.php
241 241
	 			$passed = true;
242 242
				break;
243 243
			case 'media_directory':
244
				if(strpos($value,'/',0)===false) {	$value= '/'.$value;	}
244
				$value = ( (strpos($value,'/',0)===false) && ($value!= '') ) ? '/'.$value : rtrim($value,'/'); 
245 245
	 			$passed = true;
246 246
				break;
247 247
			case 'pages_directory':
248 248
				if( ($database->get_one('SELECT COUNT(*) FROM `'.TABLE_PREFIX.'pages`'))==0 ) {
249
					$value = $admin->StripCodeFromText($value);
249
					$value = rtrim($admin->StripCodeFromText($value));
250 250
					$passed = true;
251 251
				} else {
252
					$value = $old_settings[$setting_name];
252
					$value = rtrim($old_settings[$setting_name]);
253 253
				}
254
				if(strpos($value,'/',0)===false) {	$value= '/'.$value;	}
254
				$value = ( (strpos($value,'/',0)===false) && ($value != '')  ? '/'.$value : rtrim($value,'/') ); 
255 255
				break;
256 256
			case 'wbmailer_smtp_auth':
257 257
				$value = true ;

Also available in: Unified diff