Bug 147801. Handle reserved chars.

This commit is contained in:
Jim Norman 2006-02-07 17:42:06 +00:00
parent 75c0ded6bc
commit e59741c2ca
2 changed files with 34 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 7 10:49:59 MST 2006 - jnorman@novell.com
- Bug 147801. Handle reserved chars
-------------------------------------------------------------------
Mon Feb 6 11:52:59 MST 2006 - jnorman@novell.com

View File

@ -249,7 +249,8 @@ namespace sscs.verbs
while(etor.MoveNext())
{
string sID = (string)etor.Key;
sc.Add(sID.Substring(0, sID.Length - 1));
sID = sID.Substring(0, sID.Length - 1);
sc.Add(UnescapeID(sID));
}
}
}
@ -906,7 +907,33 @@ namespace sscs.verbs
}
return wo;
}
*/
*/
private static string UnescapeID(string sOrig)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < sOrig.Length; i++)
{
if (sOrig[i] == ('\\'))
{
if (i + 1 < sOrig.Length)
{
if (sOrig[i + 1] == (':')
|| sOrig[i + 1] == ('\\')
|| sOrig[i + 1] == ('='))
{
sb.Append(sOrig[i + 1]);
i++;
}
}
else
sb.Append(sOrig[i]);
}
else
sb.Append(sOrig[i]);
}
return sb.ToString();
}
public string GetVerbName()
{
CSSSLogger.ExecutionTrace(this);