From 9f52046a660fb470c1ac963d2d7d8917cd21452a Mon Sep 17 00:00:00 2001 From: Michael An <2331806369@qq.com> Date: Mon, 6 Jan 2025 10:25:59 +0800 Subject: [PATCH] fix WebDAV text (#7312) --- frontend/src/settings.js | 2 +- seahub/api2/endpoints/webdav_secret.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/settings.js b/frontend/src/settings.js index 4dd69b4eba2..58eeca18a8a 100644 --- a/frontend/src/settings.js +++ b/frontend/src/settings.js @@ -56,7 +56,7 @@ class Settings extends React.Component { { show: true, href: '#user-basic-info', text: gettext('Profile') }, { show: canUpdatePassword, href: '#update-user-passwd', text: gettext('Password') }, { show: enableGetAuthToken, href: '#get-auth-token', text: gettext('Web API Auth Token') }, - { show: enableWebdavSecret, href: '#update-webdav-passwd', text: gettext('WebDav Access') }, + { show: enableWebdavSecret, href: '#update-webdav-passwd', text: gettext('WebDAV Access') }, { show: enableAddressBook, href: '#list-in-address-book', text: gettext('Global Address Book') }, { show: true, href: '#lang-setting', text: gettext('Language') }, { show: isPro, href: '#email-notice', text: gettext('Email Notification') }, diff --git a/seahub/api2/endpoints/webdav_secret.py b/seahub/api2/endpoints/webdav_secret.py index dacfeff5801..d5bf13c2f34 100644 --- a/seahub/api2/endpoints/webdav_secret.py +++ b/seahub/api2/endpoints/webdav_secret.py @@ -53,7 +53,7 @@ def put(self, request, format=None): return api_error(status.HTTP_400_BAD_REQUEST, error_msg) if len(secret) >= 30: - error_msg = _('Length of WebDav password should be less than 30.') + error_msg = _('Length of WebDAV password should be less than 30.') return api_error(status.HTTP_400_BAD_REQUEST, error_msg) if len(secret) < settings.WEBDAV_SECRET_MIN_LENGTH: