Ignore:
Timestamp:
1999-06-09T12:08:36+12:00 (25 years ago)
Author:
sjboddie
Message:

query string macro (_cgiargq_) is now made html safe before being set

File:
1 edited

Legend:

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

    r261 r263  
    1212/*
    1313   $Log$
     14   Revision 1.14  1999/06/09 00:08:36  sjboddie
     15   query string macro (_cgiargq_) is now made html safe before being set
     16
    1417   Revision 1.13  1999/06/08 04:29:31  sjboddie
    1518   added argsinfo to the call to check_cgiargs to make it easy to set
     
    7174#include "fileutil.h"
    7275#include "cgiutils.h"
     76#include "htmlutils.h"
    7377#include "OIDtools.h"
    7478#include <assert.h>
     
    633637  cgiargsclass::const_iterator argsend = args.end();
    634638  while (argshere != argsend) {
    635     disp.setmacro ("cgiarg" + (*argshere).first, "Global", (*argshere).second);
     639    if ((*argshere).first == "q")
     640      // need to escape special characters from query string
     641      disp.setmacro ("cgiargq", "Global", html_safe((*argshere).second));     
     642    else
     643      disp.setmacro ("cgiarg" + (*argshere).first, "Global", (*argshere).second);
    636644    argshere ++;
    637645  }
Note: See TracChangeset for help on using the changeset viewer.