Skip to content

Commit

Permalink
SA-CORE-2022-008 by mxr576, xjm, effulgentsia, mxr576, larowlan
Browse files Browse the repository at this point in the history
  • Loading branch information
xjm committed Apr 20, 2022
1 parent a414ec3 commit 609f195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Drupal/Core/Form/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ protected function handleInputElement($form_id, &$element, FormStateInterface &$
// #access=FALSE on an element usually allow access for some users, so forms
// submitted with self::submitForm() may bypass access restriction and be
// treated as high-privilege users instead.
$process_input = empty($element['#disabled']) && ($element['#type'] !== 'value') && (($form_state->isProgrammed() && $form_state->isBypassingProgrammedAccessChecks()) || ($form_state->isProcessingInput() && (!isset($element['#access']) || $element['#access'])));
$process_input = empty($element['#disabled']) && !in_array($element['#type'], ['item', 'value'], TRUE) && (($form_state->isProgrammed() && $form_state->isBypassingProgrammedAccessChecks()) || ($form_state->isProcessingInput() && (!isset($element['#access']) || $element['#access'])));

// Set the element's #value property.
if (!isset($element['#value']) && !array_key_exists('#value', $element)) {
Expand Down

0 comments on commit 609f195

Please sign in to comment.