Ignore:
Timestamp:
2014-03-18T16:45:46+13:00 (10 years ago)
Author:
ak19
Message:

Commit 5 for security. Handles setmacro() occurrences in non action.cpp files. cl is safe from hacks now.

File:
1 edited

Legend:

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

    r21758 r28912  
    3131#include "OIDtools.h"
    3232#include "gsdlunicode.h"
     33#include "securitytools.h"
    3334
    3435#if defined(GSDL_USE_IOS_H)
     
    831832  if (formatinfo.DocumentContents || args["d"].empty()) {
    832833    if (args["d"].empty()) {
    833       disp.setmacro("tocopenextra", "document", "id=\"" + cl_top + "\"");
     834      disp.setmacro("tocopenextra", "document", "id=\"" + encodeForHTMLAttr(cl_top) + "\"");
    834835    } else {
    835836      disp.setmacro("tocopenextra", "document", "");
Note: See TracChangeset for help on using the changeset viewer.