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 <memory>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -404,8 +404,8 @@ AString cWebAdmin::GetHTMLEscapedString( const AString& a_Input )
|
|||||||
std::stringstream dst;
|
std::stringstream dst;
|
||||||
|
|
||||||
// Loop over input and substitute HTML characters for their alternatives.
|
// Loop over input and substitute HTML characters for their alternatives.
|
||||||
for (char workingCharacter : a_Input) {
|
for (int i = 0; i < a_Input.length(); i++) {
|
||||||
switch (workingCharacter)
|
switch ( a_Input[i] )
|
||||||
{
|
{
|
||||||
case '&':
|
case '&':
|
||||||
dst << "&";
|
dst << "&";
|
||||||
@ -423,7 +423,7 @@ AString cWebAdmin::GetHTMLEscapedString( const AString& a_Input )
|
|||||||
dst << ">";
|
dst << ">";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dst << workingCharacter;
|
dst << a_Input[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user