diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-27 12:14:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 12:14:52 +0200 |
commit | e4e3387417deefbd873d469dfa9fa97444ca1a11 (patch) | |
tree | 13c9c3132aa036e4f8cee4d42a07c92dc50e3e8f /apps/files | |
parent | d984be7e2a23d41d03865309e37e66cb00e7ca65 (diff) | |
parent | b0a296e2e1dd1b173d9cab8c82158ac6bfb86f9e (diff) | |
download | nextcloud-server-e4e3387417deefbd873d469dfa9fa97444ca1a11.tar.gz nextcloud-server-e4e3387417deefbd873d469dfa9fa97444ca1a11.zip |
Merge pull request #10009 from nextcloud/techdebt/noid/replace-headers-with-http_response_code-calls
Replace hard coded HTTP status codes with proper calls to http_response_code
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/ajax/list.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php index c013733dbb3..588c76154a5 100644 --- a/apps/files/ajax/list.php +++ b/apps/files/ajax/list.php @@ -38,7 +38,7 @@ $dir = \OC\Files\Filesystem::normalizePath($dir); try { $dirInfo = \OC\Files\Filesystem::getFileInfo($dir); if (!$dirInfo || !$dirInfo->getType() === 'dir') { - header("HTTP/1.0 404 Not Found"); + http_response_code(404); exit(); } |