mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 11:56:16 +02:00
Allow backslashes in API query filters (fixes #1649)
This commit is contained in:
parent
beae32ef23
commit
ab53a157e4
|
|
@ -5,3 +5,6 @@
|
||||||
- Fixed that the labels of context-/more-menu items were not readable in Night Mode (thanks @corbolais)
|
- Fixed that the labels of context-/more-menu items were not readable in Night Mode (thanks @corbolais)
|
||||||
- Fixed that auto night mode over midnight did not always work
|
- Fixed that auto night mode over midnight did not always work
|
||||||
- Fixed that the "Add as new product" productpicker workflow, started from the shopping list item form, always selected the default shopping list after finishing the flow
|
- Fixed that the "Add as new product" productpicker workflow, started from the shopping list item form, always selected the default shopping list after finishing the flow
|
||||||
|
|
||||||
|
### API
|
||||||
|
- Fixed that backslashes were not allowed in API query filters
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class BaseApiController extends BaseController
|
||||||
|
|
||||||
const PATTERN_OPERATOR = '!?(=|~|<|>|(>=)|(<=)|(§))';
|
const PATTERN_OPERATOR = '!?(=|~|<|>|(>=)|(<=)|(§))';
|
||||||
|
|
||||||
const PATTERN_VALUE = '[A-Za-z\p{L}\p{M}*_0-9.$#^| -]+';
|
const PATTERN_VALUE = '[A-Za-z\p{L}\p{M}0-9*_.$#^| -\\\]+';
|
||||||
|
|
||||||
protected $OpenApiSpec = null;
|
protected $OpenApiSpec = null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user