--- a/src/internfile/myhtmlparse.cpp
+++ b/src/internfile/myhtmlparse.cpp
@@ -27,6 +27,7 @@
#include <algorithm>
#include <cstring>
+#include "cstr.h"
#include "myhtmlparse.h"
#include "indextext.h" // for lowercase_term()
#include "mimeparse.h"
@@ -352,7 +353,7 @@
case 'm':
if (tag == "meta") {
string content;
- if (get_parameter("content", content)) {
+ if (get_parameter(cstr_content, content)) {
string name;
if (get_parameter("name", name)) {
lowercase_term(name);
@@ -386,7 +387,7 @@
MimeHeaderValue p;
parseMimeHeaderValue(content, p);
map<string, string>::const_iterator k;
- if ((k = p.params.find("charset")) !=
+ if ((k = p.params.find(cstr_charset)) !=
p.params.end()) {
charset = k->second;
if (!samecharset(charset, fromcharset)) {
@@ -517,7 +518,7 @@
if (tag == "title") {
if (meta.find("title") == meta.end()|| meta["title"].empty()) {
meta["title"] = dump;
- dump = "";
+ dump.clear();
}
break;
}