Added HTML escaping

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@463 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-09-06 23:10:12 +00:00
parent 750cb398e4
commit 69ef944abc
2 changed files with 194 additions and 0 deletions
+3
View File
@@ -34,6 +34,8 @@ static const unsigned char base64_table[256] = {
XX,XX,XX,XX, XX,XX,XX,XX, XX,XX,XX,XX, XX,XX,XX,XX,
};
extern const char* g_szHTMLescapes[256];
class CString : public string {
public:
typedef enum {
@@ -47,6 +49,7 @@ public:
CString(const string& s) : string(s) {}
virtual ~CString() {}
inline unsigned char* strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill = NULL, unsigned int* piCount = NULL) const;
int CaseCmp(const CString& s) const;
int StrCmp(const CString& s) const;
static bool WildCmp(const CString& sWild, const CString& sString);