Skip to content

Commit c564ee6

Browse files
committed
Fixed #18211 - limit regex field to 191 characters
1 parent caaa9ab commit c564ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/custom_fields/fields/edit.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class="format form-control"
123123
{{ trans('admin/custom_fields/general.field_custom_format') }}
124124
</label>
125125
<div class="col-md-8 required">
126-
<input class="form-control" id="custom_format" aria-label="custom_format" placeholder="regex:/^[0-9]{15}$/" name="custom_format" type="text" value="{{ old('custom_format', (($field->format!='') && (stripos($field->format,'regex')===0)) ? $field->format : '') }}">
126+
<input class="form-control" id="custom_format" aria-label="custom_format" maxlength="191" placeholder="regex:/^[0-9]{15}$/" name="custom_format" type="text" value="{{ old('custom_format', (($field->format!='') && (stripos($field->format,'regex')===0)) ? $field->format : '') }}">
127127
<p class="help-block">{!! trans('admin/custom_fields/general.field_custom_format_help') !!}</p>
128128

129129
{!! $errors->first('custom_format', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}

0 commit comments

Comments
 (0)