镜像自地址
https://github.com/nextcloud/server.git
已同步 2024-08-13 14:11:10 +02:00
fix(unifiedsearch): Allow searching for "0"
empty("0") evaluates to true Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
这个提交包含在:
父节点
99e287b49a
当前提交
dbd666e82b
@ -100,7 +100,7 @@ class UnifiedSearchController extends OCSController {
|
||||
?int $limit = null,
|
||||
$cursor = null,
|
||||
string $from = ''): DataResponse {
|
||||
if (empty(trim($term))) {
|
||||
if (trim($term) === "") {
|
||||
return new DataResponse(null, Http::STATUS_BAD_REQUEST);
|
||||
}
|
||||
[$route, $routeParameters] = $this->getRouteInformation($from);
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户