Ignore:
Timestamp:
2014-03-14T22:46:25+13:00 (10 years ago)
Author:
ak19
Message:

Third commit for security, for ensuring cgiargs macros are websafe. This time all the changes to the runtime action classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/rssaction.cpp

    r27095 r28899  
    7070      << "  <link>_httpdomain__httppageabout_</link>\n"
    7171      << "  <description>_collectionextra_</description>\n"
    72       << "  <language>_cgiargl_</language>\n"
     72      << "  <language>_cgiarglHtmlsafe_</language>\n"
    7373      << "  <pubDate>Thu, 23 Aug 1999 07:00:00 GMT</pubDate>\n"
    7474      << "  <lastBuildDate>Thu, 23 Aug 1999 16:20:26 GMT</lastBuildDate>\n"
     
    122122  // If ever adding a custom macro file like rss.dm that mentions the package, need to list rss.dm in etc/main.cfg
    123123
    124   if(disp.havemacro("Global", "httpdomain") == 0) { // if using rss package, willcheck rss and Global packages in order. And if not found:
     124  if(disp.havemacro("Global", "httpdomain") == 0) { // if using rss package, will check rss and Global packages in order. And if not found:
    125125   
    126126    if(!args["hostname"].empty()) {
    127       disp.setmacro("httpdomain", "Global", "http://" + args["hostname"]);
     127      disp.setmacro("httpdomain", "Global", "http://" + encodeForURL(args["hostname"]));
    128128    }
    129129    else { // we shouldn't have to get here
Note: See TracChangeset for help on using the changeset viewer.