Fixed general failings with everything. Fixes #211.
My editor fixed some extra tabs in globals.
This commit is contained in:
parent
9701a7fb84
commit
f7c9230106
@ -161,6 +161,7 @@ typedef unsigned short UInt16;
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <queue>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user