Skip to content
Snippets Groups Projects

Add maxlength to prevent truncation of endpoint URL

1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -104,6 +104,7 @@ class RestWebformHandler extends WebformHandlerBase {
$form['remote']['endpoint'] = [
'#title' => $this->t('Endpoint'),
'#type' => 'textfield',
'#maxlength' => 255,
'#default_value' => $this->configuration['endpoint'],
'#description' => $this->t('Endpoint URL'),
'#required' => TRUE,
Loading