equal
deleted
inserted
replaced
310 setConfig('avatar_upload_file', ( isset($_POST['avatar_upload_file']) ? '1' : '0' )); |
310 setConfig('avatar_upload_file', ( isset($_POST['avatar_upload_file']) ? '1' : '0' )); |
311 setConfig('avatar_upload_http', ( isset($_POST['avatar_upload_http']) ? '1' : '0' )); |
311 setConfig('avatar_upload_http', ( isset($_POST['avatar_upload_http']) ? '1' : '0' )); |
312 |
312 |
313 if ( is_dir(ENANO_ROOT . '/' . $_POST['avatar_directory']) ) |
313 if ( is_dir(ENANO_ROOT . '/' . $_POST['avatar_directory']) ) |
314 { |
314 { |
315 if ( preg_match('/^([A-z0-9_-]+)(\/([A-z0-9_-]+))*$/', $_POST['avatar_directory']) ) |
315 if ( preg_match('/^([A-z0-9_-]+)(\/([A-z0-9_-]+))*\/?$/', $_POST['avatar_directory']) ) |
316 { |
316 { |
317 setConfig('avatar_directory', $_POST['avatar_directory']); |
317 setConfig('avatar_directory', $_POST['avatar_directory']); |
318 } |
318 } |
319 else |
319 else |
320 { |
320 { |