- Timestamp:
- 2014-03-14T22:46:25+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/recpt/documentaction.cpp
r27363 r28899 607 607 outlink = "_httpdocument_&d=" + response.docInfo[0].metadata["section"].values[0]; 608 608 #else 609 outlink = "_httpdocumenthandle_("+ args["c"]+","+response.docInfo[0].metadata["section"].values[0]+")";609 outlink = "_httpdocumenthandle_("+encodeForURL(args["c"])+","+response.docInfo[0].metadata["section"].values[0]+")"; 610 610 #endif 611 611 … … 1066 1066 #ifndef DOCHANDLE 1067 1067 << "<frame name=\"documenttop\" frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=d&d=" 1068 << args["d"]<< "\">"1068 << encodeForURL(args["d"]) << "\">" 1069 1069 #else 1070 1070 << "<frame name=\"documenttop\" frameborder=0 src=\"_httpdocumenthandle_(" 1071 << args["c"] << "," << args["d"]<< ")\">"1071 << encodeForURL(args["c"]) << "," << encodeForURL(args["d"]) << ")\">" 1072 1072 #endif 1073 1073 << "<noframes>\n" … … 1143 1143 #ifndef DOCHANDLE 1144 1144 << "<frame name=\"documenttop\" frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=d&d=" 1145 << args["d"]<< "\">"1145 << encodeForURL(args["d"]) << "\">" 1146 1146 #else 1147 1147 << "<frame name=\"documenttop\" frameborder=0 src=\"_httpdocumenthandle_(" 1148 << args["c"] << "," << args["d"]<< ")\">"1148 << encodeForURL(args["c"]) << "," << encodeForURL(args["d"]) << ")\">" 1149 1149 #endif 1150 1150 << "<noframes>\n" … … 1462 1462 logout << text_t2ascii 1463 1463 << "documentaction::output_document: call to QueryFilter failed " 1464 1464 << "for " << args["c"] << " collection (" << get_comerror_string (err) << ")\n"; 1465 1465 highlight = false; 1466 1466 } … … 1645 1645 if (haschildren) { 1646 1646 #ifndef DOCHANLE 1647 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + args["cl"]+1648 "&d=" + arg_d+ ".fc");1647 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + encodeForURL(args["cl"]) + 1648 "&d=" + encodeForURL(arg_d) + ".fc"); 1649 1649 #else 1650 disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+ args["c"]+","+arg_d+ ".fc)";1650 disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+encodeForURL(args["c"])+","+encodeForURL(arg_d) + ".fc)"; 1651 1651 1652 1652 #endif … … 1658 1658 if (!(*h).empty()) { 1659 1659 #ifndef DOCHANLE 1660 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + args["cl"]+1660 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + encodeForURL(args["cl"]) + 1661 1661 "&d=" + *h); 1662 1662 #else 1663 disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+ args["c"]+","+*h+")";1663 disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+encodeForURL(args["c"])+","+*h+")"; 1664 1664 1665 1665 #endif … … 1674 1674 if (!previous_sibling.empty()) { 1675 1675 #ifndef DOCHANDLE 1676 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + args["cl"]+1676 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + encodeForURL(args["cl"]) + 1677 1677 "&d=" + previous_sibling); 1678 1678 #else 1679 disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+ args["c"]+","+ previous_sibling+")");1679 disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+encodeForURL(args["c"])+","+ previous_sibling+")"); 1680 1680 1681 1681 #endif … … 1684 1684 if (countchar(arg_d.begin(), arg_d.end(), '.')) { 1685 1685 #ifndef DOCHANDLE 1686 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + args["cl"]+1686 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + encodeForURL(args["cl"]) + 1687 1687 "&d=" + get_parent(arg_d)); 1688 1688 #else 1689 disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+ args["c"]+","+get_parent(arg_d)+")");1689 disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+encodeForURL(args["c"])+","+get_parent(arg_d)+")"); 1690 1690 1691 1691 #endif
Note:
See TracChangeset
for help on using the changeset viewer.