From 50dbab928ff67b9524ce74015eb678fd7d649cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu> Date: Tue, 15 Jan 2008 10:21:40 +0000 Subject: [PATCH] #209584 by Rob Loach: 404/403 validation is also done in runtime so to allow more flexibility here, remove the submission time validation --- modules/system/system.admin.inc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index af6e53c8a030..75f3dcbe3e3d 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1217,26 +1217,9 @@ function system_error_reporting_settings() { '#description' => t('Specify where Drupal, PHP and SQL errors are logged. While it is recommended that a site running in a production environment write errors to the log only, in a development or testing environment it may be helpful to write errors both to the log and to the screen.') ); - $form['#validate'][] = 'system_error_reporting_settings_validate'; - return system_settings_form($form); } -/** - * Validate the submitted error reporting form. - */ -function system_error_reporting_settings_validate($form, &$form_state) { - // Validate paths to 403 and 404 error pages. - $item = array('link_path' => $form_state['values']['site_403']); - if (!empty($item['link_path']) && !menu_valid_path($item)) { - form_set_error('site_403', t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $item['link_path']))); - } - $item = array('link_path' => $form_state['values']['site_404']); - if (!empty($item['link_path']) && !menu_valid_path($item)) { - form_set_error('site_404', t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $item['link_path']))); - } -} - /** * Menu callback; Menu page for the various logging options. */ -- GitLab