mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-20 18:38:11 +00:00
oc: Fix asCSSIdentifier in openchange_user_cleanup
The method lacked the check for the initial character, which adds an underscore at the beginning of the strings that start with a digit.
This commit is contained in:
1 parent
3da6c90bbe
commit
734aba5ddb
1 file changed
+3
@@ -268,6 +268,9 @@ def asCSSIdentifier(inputString):
|
||||
|
||||
newChars = []
|
||||
|
||||
if str.isdigit(inputString[0]):
|
||||
newChars.append("_")
|
||||
|
||||
for c in inputString:
|
||||
if c in cssEscapingCharMap:
|
||||
newChars.append(cssEscapingCharMap[c])
|
||||
|
||||
Reference in new issue
Block a user