Ignore:
Timestamp:
2010-09-28T18:35:06+13:00 (14 years ago)
Author:
ak19
Message:
  1. Undoing commit of 22934 where decode_commas was called on stem and fold comma separated list: previously separated due to url-encoding of commas. Now that the problem has been fixed at the source, the decode_commas hack is no longer necessary. 2. Commas in stem and fold are no longer url-encoded because the multiple_value field of the continuously-reused struct arg_ainfo is always set back to the default false after ever being set to true. So it no longer subtly stays at true to affect Greenstone functioning in unforeseen ways (such as suddenly and unnecessarily URL-encoding commas where this is not wanted).
File:
1 edited

Legend:

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

    r22935 r22984  
    2626#include "querytools.h"
    2727#include <ctype.h>
    28 #include "cgiutils.h"
    2928#include "unitool.h" // for is_unicode_letdig
    3029
     
    664663    text_t stem = args["fqs"];
    665664    if (stem.empty()) return; // somethings wrong
    666     stem = decode_commas(stem); // %2C -> ,
    667665    splitchar(stem.begin(), stem.end(), ',', stems);
    668666   
    669667    text_t fold = args["fqk"];
    670668    if (fold.empty()) return; // somethings wrong
    671     fold = decode_commas(fold); // %2C -> ,
    672669    splitchar(fold.begin(), fold.end(), ',', folds);
    673670  }
Note: See TracChangeset for help on using the changeset viewer.