|
a/src/internfile/mh_html.cpp |
|
b/src/internfile/mh_html.cpp |
|
... |
|
... |
27 |
#include "mimeparse.h"
|
27 |
#include "mimeparse.h"
|
28 |
#include "myhtmlparse.h"
|
28 |
#include "myhtmlparse.h"
|
29 |
#include "indextext.h"
|
29 |
#include "indextext.h"
|
30 |
#include "mh_html.h"
|
30 |
#include "mh_html.h"
|
31 |
#include "smallut.h"
|
31 |
#include "smallut.h"
|
|
|
32 |
#include "md5.h"
|
32 |
|
33 |
|
33 |
#include <iostream>
|
34 |
#include <iostream>
|
34 |
|
35 |
|
35 |
#ifndef NO_NAMESPACES
|
36 |
#ifndef NO_NAMESPACES
|
36 |
using namespace std;
|
37 |
using namespace std;
|
|
... |
|
... |
51 |
|
52 |
|
52 |
bool MimeHandlerHtml::set_document_string(const string& htext)
|
53 |
bool MimeHandlerHtml::set_document_string(const string& htext)
|
53 |
{
|
54 |
{
|
54 |
m_html = htext;
|
55 |
m_html = htext;
|
55 |
m_havedoc = true;
|
56 |
m_havedoc = true;
|
|
|
57 |
|
|
|
58 |
// We want to compute the md5 now because we may modify m_html later
|
|
|
59 |
string md5, xmd5;
|
|
|
60 |
MD5String(htext, md5);
|
|
|
61 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
|
|
62 |
|
56 |
return true;
|
63 |
return true;
|
57 |
}
|
64 |
}
|
58 |
|
65 |
|
59 |
bool MimeHandlerHtml::next_document()
|
66 |
bool MimeHandlerHtml::next_document()
|
60 |
{
|
67 |
{
|