mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-28 02:18:40 +00:00
bug fixes
This commit is contained in:
parent
748e82358d
commit
b34004c1cb
|
|
@ -82,7 +82,7 @@ namespace DataStorage
|
|||
if (paramValues != NULL) {
|
||||
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 {
|
||||
status = sqlite3_prepare_v2((sqlite3 *) this->con, stmt, -1, &res, 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ namespace Utils
|
|||
|
||||
free(dm);
|
||||
|
||||
// @todo: do we even need to realloc?
|
||||
// @todo do we even need to realloc?
|
||||
char **diffValuesT = (char **) realloc(diffValues, diffIndex * sizeof(char *));
|
||||
if (!diffValuesT) {
|
||||
free(diffValues);
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ namespace Utils
|
|||
if(true) {
|
||||
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);
|
||||
xmlFree(orig);
|
||||
}
|
||||
|
|
@ -259,10 +259,10 @@ namespace Utils
|
|||
char *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")) {
|
||||
// @todo: check limits
|
||||
// @todo check limits
|
||||
left += follow_links(cm, page, url, &left);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user