diff --git a/CHANGES.md b/CHANGES.md index 5e3b1056..4c35089e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,7 +6,8 @@ - Updated PostScript and PDF date/time information to use UTC (Issue #490) - Fixed multiple conversions of UTF-8 HTML files from the GUI (Issue #496) - Fixed a compile bug on Solaris (Issue #498) -- Fixed a markdown parsing issue (Issue #503) +- Fixed a markdown parsing bug (Issue #503) +- Fixed a relative URL handling bug (Issue #507) - Fixed a crash bug with bad title images (Issue #510) - Fixed some minor CodeQL warnings. diff --git a/htmldoc/htmllib.cxx b/htmldoc/htmllib.cxx index f68b47cc..28e44660 100644 --- a/htmldoc/htmllib.cxx +++ b/htmldoc/htmllib.cxx @@ -3460,7 +3460,7 @@ fix_filename(char *filename, /* I - Original filename */ static char newfilename[1024]; /* New filename */ -// printf("fix_filename(filename=\"%s\", base=\"%s\")\n", filename, base); + printf("fix_filename(filename=\"%s\", base=\"%s\")\n", filename, base); if (filename == NULL) return (NULL); @@ -3529,10 +3529,6 @@ fix_filename(char *filename, /* I - Original filename */ } else { - // Relative path, strip the last component from the resource... - if ((slash = strrchr(resource, '/')) != NULL) - *slash = '\0'; - // Handle "../" in filename... while (!strncmp(filename, "../", 3)) {