Changeset 1559


Ignore:
Timestamp:
2000-09-22T10:27:42+12:00 (24 years ago)
Author:
nzdl
Message:

made OIDs for arrow links dm safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pagedbrowserclass.cpp

    r1285 r1559  
    2727#include <assert.h>
    2828#include "OIDtools.h"
     29#include "gsdltools.h"
    2930
    3031pagedbrowserclass::pagedbrowserclass () {
     
    9596
    9697  if (section.OID != args["d"]) {
    97     text_t httpprevarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + section.OID;
     98    text_t httpprevarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + dm_safe(section.OID);
    9899    text_t parentarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_</a>\n";
    99100    disp.setmacro ("httpprevarrow", "document", httpprevarrow);
     
    168169  } else {
    169170    if (!previousOID.empty()) {
    170       httpprevarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + previousOID;
     171      httpprevarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + dm_safe(previousOID);
    171172      previousarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_" + previoustitle + "</a>\n";
    172173    }
    173174    if (!nextOID.empty()) {
    174       httpnextarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + nextOID;
     175      httpnextarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + dm_safe(nextOID);
    175176      nextarrow = "<a href=\"" + httpnextarrow + "\">" + nexttitle + "_iconnext_</a>\n";
    176177    }
Note: See TracChangeset for help on using the changeset viewer.