Project

General

Profile

« Previous | Next » 

Revision 7427

surround returned query in CDATA to prevent parsing of xml within xml

View differences:

src/edu/ucsb/nceas/metacat/DBQuery.java
519 519
    resultset.append("  <nextpage>" + (pagestart + 1) + "</nextpage>\n");
520 520
    resultset.append("  <previouspage>" + (pagestart - 1) + "</previouspage>\n");
521 521

  
522
    resultset.append("  <query>" + xmlquery + "</query>");
522
    resultset.append("  <query><![CDATA[" + xmlquery + "]]></query>");
523 523
    //send out a new query
524 524
    if (out != null)
525 525
    {

Also available in: Unified diff