Skip to content

Commit 3c9394c

Browse files
authored
Merge pull request #7619 from haiwen/fix-Information-exposure-through-an-exception
fix Information exposure through an exception
2 parents 61cfae3 + 3f0228e commit 3c9394c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seahub/api2/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,8 @@ def _create_enc_repo(self, request, repo_id, repo_name, repo_desc, username, org
12791279
pwd_hash_params=pwd_hash_params)
12801280
except Exception as e:
12811281
logger.error(e)
1282-
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, str(e))
1282+
error_msg = 'Internal Server Error'
1283+
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
12831284

12841285
return repo_id, None
12851286

0 commit comments

Comments
 (0)