mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-02-15 01:48:40 +00:00
bug fixes
This commit is contained in:
parent
748e82358d
commit
b34004c1cb
|
|
@ -82,7 +82,7 @@ namespace DataStorage
|
||||||
if (paramValues != NULL) {
|
if (paramValues != NULL) {
|
||||||
status = sqlite3_prepare_v2((sqlite3 *) this->con, stmt, -1, &res, 0);
|
status = sqlite3_prepare_v2((sqlite3 *) this->con, stmt, -1, &res, 0);
|
||||||
|
|
||||||
// @todo: sqlite3_bind_int(res, 1, 3);
|
// @todo sqlite3_bind_int(res, 1, 3);
|
||||||
} else {
|
} else {
|
||||||
status = sqlite3_prepare_v2((sqlite3 *) this->con, stmt, -1, &res, 0);
|
status = sqlite3_prepare_v2((sqlite3 *) this->con, stmt, -1, &res, 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ namespace Utils
|
||||||
|
|
||||||
free(dm);
|
free(dm);
|
||||||
|
|
||||||
// @todo: do we even need to realloc?
|
// @todo do we even need to realloc?
|
||||||
char **diffValuesT = (char **) realloc(diffValues, diffIndex * sizeof(char *));
|
char **diffValuesT = (char **) realloc(diffValues, diffIndex * sizeof(char *));
|
||||||
if (!diffValuesT) {
|
if (!diffValuesT) {
|
||||||
free(diffValues);
|
free(diffValues);
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,7 @@ namespace Utils
|
||||||
if(true) {
|
if(true) {
|
||||||
xmlChar *orig = href;
|
xmlChar *orig = href;
|
||||||
|
|
||||||
// @todo: consider base= tag which has an impact on relative links
|
// @todo consider base= tag which has an impact on relative links
|
||||||
href = xmlBuildURI(href, (xmlChar *) url);
|
href = xmlBuildURI(href, (xmlChar *) url);
|
||||||
xmlFree(orig);
|
xmlFree(orig);
|
||||||
}
|
}
|
||||||
|
|
@ -259,10 +259,10 @@ namespace Utils
|
||||||
char *ctype;
|
char *ctype;
|
||||||
curl_easy_getinfo(e, CURLINFO_CONTENT_TYPE, &ctype);
|
curl_easy_getinfo(e, CURLINFO_CONTENT_TYPE, &ctype);
|
||||||
|
|
||||||
// @todo: save file (how to handle base resources, either pass base url or save based on url?)
|
// @todo save file (how to handle base resources, either pass base url or save based on url?)
|
||||||
|
|
||||||
if (ctype != NULL && strlen(ctype) > 10 && strstr(ctype, "text/html")) {
|
if (ctype != NULL && strlen(ctype) > 10 && strstr(ctype, "text/html")) {
|
||||||
// @todo: check limits
|
// @todo check limits
|
||||||
left += follow_links(cm, page, url, &left);
|
left += follow_links(cm, page, url, &left);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user