mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 05:56:15 +02:00
Allow spaces in API filter values (fixes #1624)
This commit is contained in:
parent
c06bb7784a
commit
849c281912
|
|
@ -5,4 +5,4 @@
|
||||||
- A product picture can now be added when creating a product (was currently only possible when editing a product)
|
- A product picture can now be added when creating a product (was currently only possible when editing a product)
|
||||||
|
|
||||||
### API
|
### API
|
||||||
- Fixed that international characters were not allowed in API query filters
|
- Fixed that international characters and spaces 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