#396 use regex for file name checking for binary files

This commit is contained in:
Roland Gruber 2025-01-04 11:31:08 +01:00
parent 7c168f7e57
commit 8b00b1328a
2 changed files with 19 additions and 9 deletions

View file

@ -2,7 +2,7 @@ March 2025 9.1
- Usability improvements (360) - Usability improvements (360)
- Fixed bugs: - Fixed bugs:
-> Ambiguous tooltip on profile editor for Shadow users (#394) -> Ambiguous tooltip on profile editor for Shadow users (#394)
-> Self service photo file (#396) -> Self service photo file enhancements (#396)
17.12.2024 9.0 17.12.2024 9.0

View file

@ -1703,11 +1703,12 @@
<entry>Label that is displayed on page</entry> <entry>Label that is displayed on page</entry>
<entry>optional regular expression for validation (e.g. <entry>Optional regular expression for validation (e.g.
"/^[0-9a-zA-Z]+$/")</entry> "/^[0-9a-zA-Z]+$/"). For binary fields the file name will be
checked.</entry>
<entry>validation message if value does not match validation <entry>Validation message if value does not match validation
expression</entry> expression.</entry>
</row> </row>
<row> <row>
@ -1721,11 +1722,12 @@
<entry>Label that is displayed on page</entry> <entry>Label that is displayed on page</entry>
<entry>optional regular expression for validation (e.g. <entry>Optional regular expression for validation (e.g.
"/^[0-9a-zA-Z]+$/")</entry> "/^[0-9a-zA-Z]+$/"). For binary fields the file name will be
checked.</entry>
<entry>validation message if value does not match validation <entry>Validation message if value does not match validation
expression</entry> expression.</entry>
</row> </row>
<row> <row>
@ -1800,6 +1802,14 @@
<para>constant::userAccountControl::512</para> <para>constant::userAccountControl::512</para>
<literallayout>
</literallayout>
<para>Binary file:</para>
<para>required::jpegPhoto;binary::Photo::/.jp(e)?g$/i::Please select a
JPG file</para>
<literallayout> <literallayout>
</literallayout> </literallayout>