Changeset 33897

Show
Ignore:
Timestamp:
04.02.2020 10:06:11 (2 weeks 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.

Files:
1 modified

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