|
a/src/internfile/mh_exec.cpp |
|
b/src/internfile/mh_exec.cpp |
|
... |
|
... |
173 |
// The default output mime type is html, but it may be defined
|
173 |
// The default output mime type is html, but it may be defined
|
174 |
// otherwise in the filter definition.
|
174 |
// otherwise in the filter definition.
|
175 |
m_metaData[cstr_dj_keymt] = cfgFilterOutputMtype.empty() ? "text/html" :
|
175 |
m_metaData[cstr_dj_keymt] = cfgFilterOutputMtype.empty() ? "text/html" :
|
176 |
cfgFilterOutputMtype;
|
176 |
cfgFilterOutputMtype;
|
177 |
|
177 |
|
|
|
178 |
if (!m_forPreview) {
|
178 |
string md5, xmd5, reason;
|
179 |
string md5, xmd5, reason;
|
179 |
if (MD5File(m_fn, md5, &reason)) {
|
180 |
if (MD5File(m_fn, md5, &reason)) {
|
180 |
m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
|
181 |
m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
|
181 |
} else {
|
182 |
} else {
|
182 |
LOGERR(("MimeHandlerExec: cant compute md5 for [%s]: %s\n",
|
183 |
LOGERR(("MimeHandlerExec: cant compute md5 for [%s]: %s\n",
|
183 |
m_fn.c_str(), reason.c_str()));
|
184 |
m_fn.c_str(), reason.c_str()));
|
|
|
185 |
}
|
184 |
}
|
186 |
}
|
185 |
|
187 |
|
186 |
handle_cs(m_metaData[cstr_dj_keymt]);
|
188 |
handle_cs(m_metaData[cstr_dj_keymt]);
|
187 |
}
|
189 |
}
|