Changeset 10092


Ignore:
Timestamp:
2005-06-14T15:05:33+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now escapes backslash characters also, in response to changes to gti.pl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/gtiaction.cpp

    r10070 r10092  
    299299    text_t chunk_key_escaped = escape_all(chunk_key, '_');
    300300
    301     // Need to escape any underscores, commas, parentheses and single quotes in the chunk text
     301    // Need to escape any backslashes, underscores, commas, parentheses, and single quotes in the chunk text
    302302    text_t target_file_chunk_text = gti_response.target_file_chunks_key_to_text_mapping[chunk_key];
    303     text_t target_file_chunk_text_escaped = escape_all(target_file_chunk_text, '_');
     303    text_t target_file_chunk_text_escaped = escape_all(target_file_chunk_text, '\\');
     304    target_file_chunk_text_escaped = escape_all(target_file_chunk_text_escaped, '_');
    304305    target_file_chunk_text_escaped = escape_all(target_file_chunk_text_escaped, ',');
    305306    target_file_chunk_text_escaped = escape_all(target_file_chunk_text_escaped, '(');
     
    364365    text_t chunk_key_escaped = escape_all(chunk_key, '_');
    365366
    366     // Need to escape any underscores, commas, parentheses and single quotes in the chunk text
     367    // Need to escape any backslashes, underscores, commas, parentheses, and single quotes in the chunk text
    367368    text_t source_file_chunk_text = gti_response.source_file_chunks_key_to_text_mapping[chunk_key];
    368     text_t source_file_chunk_text_escaped = escape_all(source_file_chunk_text, '_');
     369    text_t source_file_chunk_text_escaped = escape_all(source_file_chunk_text, '\\');
     370    source_file_chunk_text_escaped = escape_all(source_file_chunk_text_escaped, '_');
    369371    source_file_chunk_text_escaped = escape_all(source_file_chunk_text_escaped, ',');
    370372    source_file_chunk_text_escaped = escape_all(source_file_chunk_text_escaped, '(');
     
    372374    source_file_chunk_text_escaped = escape_all(source_file_chunk_text_escaped, '\'');
    373375    text_t target_file_chunk_text = gti_response.target_file_chunks_key_to_text_mapping[chunk_key];
    374     text_t target_file_chunk_text_escaped = escape_all(target_file_chunk_text, '_');
     376    text_t target_file_chunk_text_escaped = escape_all(target_file_chunk_text, '\\');
     377    target_file_chunk_text_escaped = escape_all(target_file_chunk_text_escaped, '_');
    375378    target_file_chunk_text_escaped = escape_all(target_file_chunk_text_escaped, ',');
    376379    target_file_chunk_text_escaped = escape_all(target_file_chunk_text_escaped, '(');
Note: See TracChangeset for help on using the changeset viewer.