Changeset 23305

Show
Ignore:
Timestamp:
09.11.2010 15:49:02 (9 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

Files:
1 modified

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++;