mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 14:22:44 +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:
@@ -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