From 734aba5ddbb6094fe4e7429b6d3d0cefe7344985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= Date: Mon, 14 Sep 2015 15:53:07 +0200 Subject: [PATCH] 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. --- Scripts/openchange_user_cleanup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/openchange_user_cleanup b/Scripts/openchange_user_cleanup index e67289480..93a91c8ea 100755 --- a/Scripts/openchange_user_cleanup +++ b/Scripts/openchange_user_cleanup @@ -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])