|
a/src/query/docseqhist.cpp |
|
b/src/query/docseqhist.cpp |
|
... |
|
... |
54 |
udi.erase();
|
54 |
udi.erase();
|
55 |
string fn, ipath;
|
55 |
string fn, ipath;
|
56 |
switch (vall.size()) {
|
56 |
switch (vall.size()) {
|
57 |
case 2:
|
57 |
case 2:
|
58 |
// Old fn+ipath, null ipath case
|
58 |
// Old fn+ipath, null ipath case
|
59 |
unixtime = atol((*it++).c_str());
|
59 |
unixtime = atoll((*it++).c_str());
|
60 |
base64_decode(*it++, fn);
|
60 |
base64_decode(*it++, fn);
|
61 |
break;
|
61 |
break;
|
62 |
case 3:
|
62 |
case 3:
|
63 |
if (!it->compare("U")) {
|
63 |
if (!it->compare("U")) {
|
64 |
// New udi-based entry
|
64 |
// New udi-based entry
|
65 |
it++;
|
65 |
it++;
|
66 |
unixtime = atol((*it++).c_str());
|
66 |
unixtime = atoll((*it++).c_str());
|
67 |
base64_decode(*it++, udi);
|
67 |
base64_decode(*it++, udi);
|
68 |
} else {
|
68 |
} else {
|
69 |
// Old fn + ipath. We happen to know how to build an udi
|
69 |
// Old fn + ipath. We happen to know how to build an udi
|
70 |
unixtime = atol((*it++).c_str());
|
70 |
unixtime = atoll((*it++).c_str());
|
71 |
base64_decode(*it++, fn);
|
71 |
base64_decode(*it++, fn);
|
72 |
base64_decode(*it, ipath);
|
72 |
base64_decode(*it, ipath);
|
73 |
}
|
73 |
}
|
74 |
break;
|
74 |
break;
|
75 |
default:
|
75 |
default:
|