mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Cosmetics
This commit is contained in:
parent
711ecf5df2
commit
6bfdcbafec
7 changed files with 8 additions and 7 deletions
|
@ -104,7 +104,7 @@ class Rights(BaseRights):
|
|||
self.rights_type = configuration.get("rights", "type").lower()
|
||||
|
||||
def authorized(self, user, collection, permission):
|
||||
user = user or ''
|
||||
user = user or ""
|
||||
if user and not storage.is_safe_path_component(user):
|
||||
# Prevent usernames like "user/calendar.ics"
|
||||
raise ValueError("Unsafe username")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue