diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-13 13:31:54 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-13 13:31:54 +0000 |
commit | 1df9d83656ace6fdaa379b4029d64ae9ee19fdb5 (patch) | |
tree | ecaf235a50614c2d767bed5616f1d1ced020ba19 /riscos | |
parent | 408aa68174e10b02fac50baee1d6e518259fecd4 (diff) | |
download | netsurf-1df9d83656ace6fdaa379b4029d64ae9ee19fdb5.tar.gz netsurf-1df9d83656ace6fdaa379b4029d64ae9ee19fdb5.tar.bz2 |
[project @ 2004-04-13 13:31:54 by jmb]
Fix bug in URL rewriting affecting pages with embedded HTML documents.
Rename save_complete_internal to save_complete_html to aid clarity
svn path=/import/netsurf/; revision=770
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/save_complete.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/riscos/save_complete.c b/riscos/save_complete.c index 7f906fc81..1e2dc01af 100644 --- a/riscos/save_complete.c +++ b/riscos/save_complete.c @@ -41,7 +41,7 @@ struct save_complete_entry { /** List of urls seen and saved so far. */ static struct save_complete_entry *save_complete_list; -static void save_complete_internal(struct content *c, const char *path, +static void save_complete_html(struct content *c, const char *path, bool index); static void save_imported_sheets(struct content *c, const char *path); static char * rewrite_stylesheet_urls(const char *source, unsigned int size, @@ -62,7 +62,9 @@ static int save_complete_find_url(const char *url); void save_complete(struct content *c, const char *path) { - save_complete_internal(c, path, true); + save_complete_list = 0; + + save_complete_html(c, path, true); /* free save_complete_list */ while (save_complete_list) { @@ -80,7 +82,7 @@ void save_complete(struct content *c, const char *path) * \param path directory to save to (must exist) */ -void save_complete_internal(struct content *c, const char *path, bool index) +void save_complete_html(struct content *c, const char *path, bool index) { char spath[256]; unsigned int i; @@ -89,8 +91,6 @@ void save_complete_internal(struct content *c, const char *path, bool index) if (c->type != CONTENT_HTML) return; - save_complete_list = 0; - /* save stylesheets, ignoring the base sheet */ for (i = 1; i != c->data.html.stylesheet_count; i++) { struct content *css = c->data.html.stylesheet_content[i]; @@ -128,7 +128,7 @@ void save_complete_internal(struct content *c, const char *path, bool index) save_complete_add_url(obj->url, (int) obj); if (obj->type == CONTENT_HTML) { - save_complete_internal(obj, path, false); + save_complete_html(obj, path, false); } else { snprintf(spath, sizeof spath, "%s.%x", path, |