1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

[api2] update err msg of owa api

This commit is contained in:
lian
2016-03-02 13:39:25 +08:00
parent 81e38a29cf
commit c257b6deb8

View File

@@ -1846,7 +1846,7 @@ class OwaFileView(APIView):
filename = os.path.basename(path) filename = os.path.basename(path)
filetype, fileext = get_file_type_and_ext(filename) filetype, fileext = get_file_type_and_ext(filename)
if fileext not in OFFICE_WEB_APP_FILE_EXTENSION: if fileext not in OFFICE_WEB_APP_FILE_EXTENSION:
error_msg = 'file extension invalid.' error_msg = 'path invalid.'
return api_error(status.HTTP_400_BAD_REQUEST, error_msg) return api_error(status.HTTP_400_BAD_REQUEST, error_msg)
# get wopi dict # get wopi dict