Ignore:
Timestamp:
2014-03-14T22:46:25+13:00 (10 years ago)
Author:
ak19
Message:

Third commit for security, for ensuring cgiargs macros are websafe. This time all the changes to the runtime action classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/securitytools.h

    r28898 r28899  
    2828text_t encodeForHTMLAttr(const text_t& input, const text_t& immuneChars=IMMUNE_HTMLATTR);
    2929text_t encodeForCSS(const text_t& input, const text_t& immuneChars=IMMUNE_CSS);
    30 text_t encodeForMySQL(const text_t& input, const text_t& immuneChars=IMMUNE_SQL, const SQLMode mode=STANDARD);
     30// C++ port of OWASP-ESAPI for MySQL, not sure if this is is the same for SQLite
     31text_t encodeForSQL(const text_t& input, const text_t& immuneChars=IMMUNE_SQL, const SQLMode mode=STANDARD);
    3132
    3233// Character conversions
     
    3536text_t encodeForJavascript(const text_t& immuneChars, const unsigned short input, bool dmsafe);
    3637text_t encodeForCSS(const text_t& immuneChars, const unsigned short input);
    37 text_t encodeForMySQL(const text_t& immuneChars, const unsigned short input, const SQLMode mode);
     38text_t encodeForSQL(const text_t& immuneChars, const unsigned short input, const SQLMode mode);
    3839
    3940
Note: See TracChangeset for help on using the changeset viewer.