Changeset 13216


Ignore:
Timestamp:
2006-11-03T11:27:03+13:00 (17 years ago)
Author:
mdewsnip
Message:

Now makes the chunk keys XML safe also, to prevent XML errors with the GLI dictionary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gti.pl

    r12566 r13216  
    223223    my $source_file_chunk_text = &make_text_xml_safe($source_file_key_to_text_mapping{$chunk_key});
    224224
    225     $xml_response .= "    <Chunk key=\"$chunk_key\">\n";
     225    $xml_response .= "    <Chunk key=\"" . &make_text_xml_safe($chunk_key) . "\">\n";
    226226    $xml_response .= "      <SourceFileText date=\"$source_file_chunk_date\">$source_file_chunk_text</SourceFileText>\n";
    227227    $xml_response .= "      <TargetFileText></TargetFileText>\n";
     
    249249    my $target_file_chunk_text = &make_text_xml_safe($target_file_key_to_text_mapping{$chunk_key});
    250250
    251     $xml_response .= "    <Chunk key=\"$chunk_key\">\n";
     251    $xml_response .= "    <Chunk key=\"" . &make_text_xml_safe($chunk_key) . "\">\n";
    252252    $xml_response .= "      <SourceFileText date=\"$source_file_chunk_date\">$source_file_chunk_text</SourceFileText>\n";
    253253    $xml_response .= "      <TargetFileText date=\"$target_file_chunk_date\">$target_file_chunk_text</TargetFileText>\n";
Note: See TracChangeset for help on using the changeset viewer.