mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Bugfix for sanitizing filenames
This commit is contained in:
parent
3c79a5ce0a
commit
8154e75069
@ -3,8 +3,9 @@ import threading
|
|||||||
import Queue
|
import Queue
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
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_]+')
|
RE_SLUGIFY = re.compile(r'[^A-Za-z0-9_]+')
|
||||||
|
|
||||||
DATE_STR_FORMAT = u"%H:%M:%S %d-%m-%Y"
|
DATE_STR_FORMAT = u"%H:%M:%S %d-%m-%Y"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user