FIX Disallow special char in name of oauth entries

This commit is contained in:
Laurent Destailleur
2025-06-09 17:12:38 +02:00
parent e69e6ad1d9
commit 0950e80ce7

View File

@@ -294,7 +294,7 @@ foreach ($list as $key) {
}
print '</select>';
print ajax_combobox('provider');
print ' <input type="text" name="label" value="" placeholder="'.$langs->trans("Label").'" pattern="^\S+$" title="'.$langs->trans("SpaceOrSpecialCharAreNotAllowed").'">';
print ' <input type="text" name="label" value="" placeholder="'.$langs->trans("Label").'" pattern="^[a-zA-Z0-9]+$" title="'.$langs->trans("SpaceOrSpecialCharAreNotAllowed").'">';
print ' <input type="submit" class="button small" name="add" value="'.$langs->trans("Add").'">';
print '<br>';