Commit 4eeb355a authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3026462 by das-peter, Anybody: Use path_is_admin() to detect backend paths more reliable

parent 5f1b2ca1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ function captcha_form_alter(&$form, &$form_state, $form_id) {
  if (
    variable_get('captcha_administration_mode', FALSE)
    && user_access('administer CAPTCHA settings')
    && (arg(0) != 'admin' || variable_get('captcha_allow_on_admin_pages', FALSE))
    && (!path_is_admin(current_path()) || variable_get('captcha_allow_on_admin_pages', FALSE))
  ) {
    // Add CAPTCHA administration tools.
    module_load_include('inc', 'captcha');