Changeset 33897


Ignore:
Timestamp:
2020-02-04T10:06:11+13:00 (4 years ago)
Author:
kjdon
Message:

elsewhere in the code - GSXML.xmlSafe, we are escaping ' => ' we need to make sure we recover this too, otherwise get ' in the interface eg in search box if we have an apostrophe in search term.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XMLConverter.java

    r30477 r33897  
    355355                attr_val = attr_val.replaceAll(">",">");
    356356                attr_val = attr_val.replaceAll("\"",""");
     357               
    357358                // assume that any of the above chars that was already entity escaped
    358359                // was already correct => return back to how they were
     
    361362                attr_val = attr_val.replaceAll(">",">");
    362363                attr_val = attr_val.replaceAll(""",""");
     364                attr_val = attr_val.replaceAll("'","'");
    363365               
    364366               
Note: See TracChangeset for help on using the changeset viewer.