Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 923124
Collapse All | Expand All

(-)src/internfile/mh_xslt.cpp (-6 / +6 lines)
Lines 66-72 public: Link Here
66
    xmlDocPtr getDoc() {
66
    xmlDocPtr getDoc() {
67
        int ret;
67
        int ret;
68
        if ((ret = xmlParseChunk(ctxt, nullptr, 0, 1))) {
68
        if ((ret = xmlParseChunk(ctxt, nullptr, 0, 1))) {
69
            xmlError *error = xmlGetLastError();
69
            const xmlError *error = xmlGetLastError();
70
            LOGERR("FileScanXML: final xmlParseChunk failed with error " <<
70
            LOGERR("FileScanXML: final xmlParseChunk failed with error " <<
71
                   ret << " error: " <<
71
                   ret << " error: " <<
72
                   (error ? error->message :
72
                   (error ? error->message :
Lines 82-87 public: Link Here
82
            LOGERR("FileScanXML: xmlCreatePushParserCtxt failed\n");
82
            LOGERR("FileScanXML: xmlCreatePushParserCtxt failed\n");
83
            return false;
83
            return false;
84
        } else {
84
        } else {
85
            // Replaces setting global variables through the following in the module init:
86
            // xmlSubstituteEntitiesDefault(0); // No XML_PARSE_NOENT
87
            // xmlLoadExtDtdDefaultValue = 0;   // No XML_PARSE_DTDLOAD
88
            xmlCtxtUseOptions(ctxt, 0);
85
            return true;
89
            return true;
86
        }
90
        }
87
    }
91
    }
Lines 95-101 public: Link Here
95
        }            
99
        }            
96
        int ret;
100
        int ret;
97
        if ((ret = xmlParseChunk(ctxt, buf, cnt, 0))) {
101
        if ((ret = xmlParseChunk(ctxt, buf, cnt, 0))) {
98
            xmlError *error = xmlGetLastError();
102
            const xmlError *error = xmlGetLastError();
99
            LOGERR("FileScanXML: xmlParseChunk failed with error " <<
103
            LOGERR("FileScanXML: xmlParseChunk failed with error " <<
100
                   ret << " for [" << buf << "] error " <<
104
                   ret << " for [" << buf << "] error " <<
101
                   (error ? error->message :
105
                   (error ? error->message :
Lines 159-167 MimeHandlerXslt::MimeHandlerXslt(RclConfig *cnf, const std::string& id, Link Here
159
    LOGDEB("MimeHandlerXslt: params: " << stringsToString(params) << endl);
163
    LOGDEB("MimeHandlerXslt: params: " << stringsToString(params) << endl);
160
    m->filtersdir = path_cat(cnf->getDatadir(), "filters");
164
    m->filtersdir = path_cat(cnf->getDatadir(), "filters");
161
165
162
    xmlSubstituteEntitiesDefault(0);
163
    xmlLoadExtDtdDefaultValue = 0;
164
165
    // params can be "xslt stylesheetall" or
166
    // params can be "xslt stylesheetall" or
166
    // "xslt meta/body memberpath stylesheetnm [... ... ...] ...
167
    // "xslt meta/body memberpath stylesheetnm [... ... ...] ...
167
    if (params.size() == 2) {
168
    if (params.size() == 2) {
168
- 

Return to bug 923124