user/path value check: add additional option
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* Extension: tox with new optional test cases to test with LinuxOS vfat, hfsplus, ntfs filesystems
|
||||
* Adjust: respond with 500 in case principal collection cannot be created (e.g. filesystem issues)
|
||||
* Improve: sharing supports now unicode
|
||||
* Add: [server] new options validate_user_value/validate_path_value for ability to block unwanted values
|
||||
* Add: [server] new options validate_user_value/validate_path_value for ability to block unwanted values (autoenable "strict" on non-unicode filesystem)
|
||||
* Adjust: several log levels incl. final result depending on status code
|
||||
* Fix: sharing/csv: quote handling and honor stock encoding
|
||||
* Extension: sharing: add ICAL:calendar-order to property overlay whitelist
|
||||
|
||||
@@ -1626,7 +1626,8 @@ Validate user value content
|
||||
Available types are:
|
||||
* `none`
|
||||
* `minimal` (control and some special chars)
|
||||
* `unicodeletter` (unicode letters)
|
||||
* `unicode-letter` (unicode letters)
|
||||
* `no-unicode` (no unicode)
|
||||
* `strict` (reduced ASCII set)
|
||||
|
||||
Default: `minimum`
|
||||
@@ -1639,7 +1640,8 @@ Validate path value content
|
||||
|
||||
* `none`
|
||||
* `minimal` (control and some special chars)
|
||||
* `unicodeletter` (unicode letters)
|
||||
* `unicode-letter` (unicode letters)
|
||||
* `no-unicode` (no unicode)
|
||||
* `strict` (reduced ASCII set)
|
||||
|
||||
Default: `minimum`
|
||||
|
||||
4
config
4
config
@@ -59,11 +59,11 @@
|
||||
#script_name = (default taken from HTTP_X_SCRIPT_NAME or SCRIPT_NAME)
|
||||
|
||||
# validate user type
|
||||
# Value: none|minimal|unicodeletter|strict
|
||||
# Value: none|minimal|unicode-letter|no-unicode|strict
|
||||
#validate_user_value = minimal
|
||||
|
||||
# validate path value
|
||||
# Value: none|minimal|unicodeletter|strict
|
||||
# Value: none|minimal|unicode-letter|no-unicode|strict
|
||||
#validate_path_value = minimal
|
||||
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ DEFAULT_CONFIG_PATH: str = os.pathsep.join([
|
||||
|
||||
PROFILING: Sequence[str] = ("per_request", "per_request_method", "none")
|
||||
|
||||
VALIDATE_TYPES: Sequence[str] = ("none", "minimal", "unicodeletter", "strict")
|
||||
VALIDATE_TYPES: Sequence[str] = ("none", "minimal", "unicode-letter", "unicode-none", "strict")
|
||||
|
||||
|
||||
def positive_int(value: Any) -> int:
|
||||
|
||||
Reference in New Issue
Block a user