Changeset 28912 for main/trunk
- Timestamp:
- 2014-03-18T16:45:46+13:00 (10 years ago)
- Location:
- main/trunk/greenstone2/runtime-src/src/recpt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/recpt/browsetoolsclass.cpp
r21758 r28912 31 31 #include "OIDtools.h" 32 32 #include "gsdlunicode.h" 33 #include "securitytools.h" 33 34 34 35 #if defined(GSDL_USE_IOS_H) … … 831 832 if (formatinfo.DocumentContents || args["d"].empty()) { 832 833 if (args["d"].empty()) { 833 disp.setmacro("tocopenextra", "document", "id=\"" + cl_top+ "\"");834 disp.setmacro("tocopenextra", "document", "id=\"" + encodeForHTMLAttr(cl_top) + "\""); 834 835 } else { 835 836 disp.setmacro("tocopenextra", "document", ""); -
main/trunk/greenstone2/runtime-src/src/recpt/pagedbrowserclass.cpp
r19047 r28912 107 107 108 108 if (section.OID != args["d"]) { 109 text_t httpprevarrow = "_httpdocument_&cl=" + args["cl"]+ "&d=" + dm_safe(section.OID);109 text_t httpprevarrow = "_httpdocument_&cl=" + encodeForURL(args["cl"]) + "&d=" + dm_safe(section.OID); 110 110 text_t parentarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_</a>\n"; 111 111 disp.setmacro ("httpprevarrow", "document", httpprevarrow); … … 176 176 177 177 if (!found) { 178 httpnextarrow = "_httpdocument_&cl=" + args["cl"]+ "&d=" + sections.docInfo[0].OID;178 httpnextarrow = "_httpdocument_&cl=" + encodeForURL(args["cl"]) + "&d=" + sections.docInfo[0].OID; 179 179 nextarrow = "<a href=\"" + httpnextarrow + "\">" + 180 180 sections.docInfo[0].metadata["Title"].values[0] + "_iconnext_</a>\n"; … … 182 182 } else { 183 183 if (!previousOID.empty()) { 184 httpprevarrow = "_httpdocument_&cl=" + args["cl"]+ "&d=" + dm_safe(previousOID);184 httpprevarrow = "_httpdocument_&cl=" + encodeForURL(args["cl"]) + "&d=" + dm_safe(previousOID); 185 185 prevarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_" + previoustitle + "</a>\n"; 186 186 } 187 187 if (!nextOID.empty()) { 188 httpnextarrow = "_httpdocument_&cl=" + args["cl"]+ "&d=" + dm_safe(nextOID);188 httpnextarrow = "_httpdocument_&cl=" + encodeForURL(args["cl"]) + "&d=" + dm_safe(nextOID); 189 189 nextarrow = "<a href=\"" + httpnextarrow + "\">" + nexttitle + "_iconnext_</a>\n"; 190 190 } -
main/trunk/greenstone2/runtime-src/src/recpt/receptionist.cpp
r28899 r28912 1478 1478 text_t compressedoptions = get_compressed_arg(args, logout); 1479 1479 disp.setmacro ("compressedoptions", displayclass::defaultpackage, dm_safe(compressedoptions)); 1480 //disp.setmacro ("compressedoptionsUrlsafe", displayclass::defaultpackage, encodeForURL(dm_safe(compressedoptions))); // seems to be unnecessary after testing e=hack or e=hack<collect>... or e=...<collect>hack in a live server 1481 1480 1482 // need a decoded version of compressedoptions for use within forms 1481 1483 // as browsers encode values from forms before sending to server … … 1635 1637 if (!cinfo.httpdomain.empty()) httpcollection = "http://"; 1636 1638 httpcollection += cinfo.httpdomain + httpprefix + "/collect/" 1637 + collection;1639 + encodeForURL(collection); 1638 1640 disp.setmacro ("httpcollection", displayclass::defaultpackage, 1639 1641 httpcollection);
Note:
See TracChangeset
for help on using the changeset viewer.