Changeset 23305


Ignore:
Timestamp:
2010-11-09T15:49:02+13:00 (11 years ago)
Author:
davidb
Message:

htmlsafe: expanded to also protect commas and single apostrophe as these can cause problems in the HTML when embedded in format or macro statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/formattools.cpp

    r22924 r23305  
    11561156    else if (*text_iterator == '>') text_html_safe += ">";
    11571157    else if (*text_iterator == '"') text_html_safe += """;
     1158    else if (*text_iterator == '\'') text_html_safe += "'";
     1159    else if (*text_iterator == ',') text_html_safe += ",";
    11581160    else text_html_safe.push_back(*text_iterator);
    11591161    text_iterator++;
Note: See TracChangeset for help on using the changeset viewer.