mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Bugfix for sanitizing filenames
This commit is contained in:
parent
3c79a5ce0a
commit
8154e75069
@ -3,8 +3,9 @@ import threading
|
||||
import Queue
|
||||
import datetime
|
||||
import re
|
||||
import os
|
||||
|
||||
RE_SANITIZE_FILENAME = re.compile(r"(~|(\.\.)|/|\+)")
|
||||
RE_SANITIZE_FILENAME = re.compile(r'(~|\.\.|/|\\)')
|
||||
RE_SLUGIFY = re.compile(r'[^A-Za-z0-9_]+')
|
||||
|
||||
DATE_STR_FORMAT = u"%H:%M:%S %d-%m-%Y"
|
||||
|
Loading…
x
Reference in New Issue
Block a user