Fixed general failings with everything. Fixes #211.
My editor fixed some extra tabs in globals.
This commit is contained in:
@@ -404,8 +404,8 @@ AString cWebAdmin::GetHTMLEscapedString( const AString& a_Input )
|
||||
std::stringstream dst;
|
||||
|
||||
// Loop over input and substitute HTML characters for their alternatives.
|
||||
for (char workingCharacter : a_Input) {
|
||||
switch (workingCharacter)
|
||||
for (int i = 0; i < a_Input.length(); i++) {
|
||||
switch ( a_Input[i] )
|
||||
{
|
||||
case '&':
|
||||
dst << "&";
|
||||
@@ -423,7 +423,7 @@ AString cWebAdmin::GetHTMLEscapedString( const AString& a_Input )
|
||||
dst << ">";
|
||||
break;
|
||||
default:
|
||||
dst << workingCharacter;
|
||||
dst << a_Input[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user