- 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/pageaction.cpp
r28888 r28899 212 212 213 213 text_t link = "_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here; 214 link += "&l=" + args["l"] + "&w=" + args["w"];214 link += "&l=" + encodeForURL(args["l"]) + "&w=" + encodeForURL(args["w"]); 215 215 216 216 // We are "dynamically" overriding so to speak the … … 335 335 if (cinfo->isCollectGroup) { 336 336 link = "<a class=\"collectiontitle\" href=\"_gwcgi_?"+optsite+"a=p&p=home&g=" + *collist_here; 337 link += "&l=" + args["l"] + "&w=" + args["w"]+ "\">";337 link += "&l=" + encodeForURL(args["l"]) + "&w=" + encodeForURL(args["w"]) + "\">"; 338 338 } 339 339 else { 340 340 link = "<a class=\"collectiontitle\" href=\"_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here; 341 link += "&l=" + args["l"] + "&w=" + args["w"]+ "\">";341 link += "&l=" + encodeForURL(args["l"]) + "&w=" + encodeForURL(args["w"]) + "\">"; 342 342 } 343 343 … … 515 515 516 516 void pageaction::set_macro_to_file_contents (displayclass &disp, const text_t ¯oname, 517 const text_t &packagename, const text_t &filename ) {517 const text_t &packagename, const text_t &filename, bool encode) { 518 518 519 519 text_t filecontent; … … 531 531 file_in.close(); 532 532 } 533 534 // if we ever need to encode the contents into HTML, call this function with encode=true 535 if(encode) { 536 filecontent = encodeForHTML(filecontent); 537 } 538 533 539 disp.setmacro (macroname, packagename, dm_safe(filecontent)); 534 540 }
Note:
See TracChangeset
for help on using the changeset viewer.