浏览代码

Return 404 when the service is not available

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v15.0.0beta1
Joas Schilling 5 年前
父节点
当前提交
f64bd62f8e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      public.php

+ 1
- 1
public.php 查看文件

@@ -54,7 +54,7 @@ try {
list($service) = explode('/', $pathInfo);
}
$file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
if ($file === null) {
if ($file === '') {
http_response_code(404);
exit;
}

正在加载...
取消
保存