Fixes 27085

[TFS Changeset #70415]
This commit is contained in:
hartvig
2010-06-21 09:13:22 +00:00
parent 2e53c7b468
commit 5ec181ab1f
2 changed files with 7 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ namespace umbraco.cms.helpers
}
else
{
// first char should always be lowercase (camel style)
if (safeString.Length == 0)
currentChar = currentChar.ToLower();
if (i < aliasLength - 1 && i > 0 && alias.Substring(i - 1, 1) == " ")
currentChar = currentChar.ToUpper();

View File

@@ -44,6 +44,10 @@ function safeAlias(alias) {
if (i == 0 && UMBRACO_FORCE_SAFE_ALIAS_INVALID_FIRST_CHARS.indexOf(currentChar.toLowerCase()) > 0) {
currentChar = '';
} else {
// first char should always be lowercase (camel style)
if (safeAlias.length == 0)
currentChar = currentChar.toLowerCase();
if (i < aliasLength - 1 && i > 0 && alias.substring(i - 1, i) == ' ')
currentChar = currentChar.toUpperCase();