Changeset 19259 for gsdl/trunk/runtime-src/src/recpt/receptionist.cpp
- Timestamp:
- 2009-04-25T18:45:58+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/recpt/receptionist.cpp
r19109 r19259 1448 1448 } 1449 1449 1450 1450 1451 void receptionist::define_general_macros (cgiargsclass &args, outconvertclass &/*outconvert*/, 1451 1452 ostream &logout) { … … 1457 1458 disp.setmacro ("httpweb", displayclass::defaultpackage, configinfo.httpweb); 1458 1459 disp.setmacro ("httpprefix", displayclass::defaultpackage, configinfo.httpprefix); 1459 1460 1460 1461 1461 text_t compressedoptions = get_compressed_arg(args, logout); … … 1559 1559 } 1560 1560 } 1561 1561 1562 1562 if (!collection.empty()) { 1563 1563 ColInfoResponse_t cinfo; … … 1566 1566 if (collectproto != NULL) { 1567 1567 collectproto->get_collectinfo (collection, cinfo, err, logout); 1568 1569 1570 // This part of the code used to use "cinfo.httpprefix" regardless 1571 // of the value it contained. Since 1572 // this can come back with an empty (in the case of gsdl_mod), the 1573 // URL produced was invalid. 1574 // 1575 // Changed to test for empty first, and use configinfo.httpprefix as 1576 // a "backup" 1577 // 1578 // Point to consider: since configinfo.httpprefix has been offically 1579 // set as "httpprefix" in macros, it seems to make more sense to use 1580 // always use that version and not the cinfo version at all. 1581 1582 text_t httpprefix 1583 = (!cinfo.httpprefix.empty()) ? cinfo.httpprefix : configinfo.httpprefix; 1584 1568 1585 text_t httpcollection; 1569 1586 if (!cinfo.httpdomain.empty()) httpcollection = "http://"; 1570 httpcollection += cinfo.httpdomain + cinfo.httpprefix + "/collect/"1587 httpcollection += cinfo.httpdomain + httpprefix + "/collect/" 1571 1588 + collection; 1572 1589 disp.setmacro ("httpcollection", displayclass::defaultpackage, 1573 1590 httpcollection); 1591 1574 1592 // as of gsdl 2.53, collect.cfg can specify macros 1575 1593 if (cinfo.collection_macros.size() > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.