zotero/zotero — pull request #187 by aurimasv (2012-11-08 23:04:47+00:00)
Title: [WebPageDump] Don't overwrite HTML files when downloading content

In this patch we register HTML files that are being created in the file registry, so that any files that are downloaded (images, embedded objects, etc.) will not overwrite them in case they are named the same way as the HTML files.

Also passed code through JSBeutifier. The diff is a bit messy, but you can look at the first commit for pre-JSBeutifier changes. Also, just in case someone is not aware of the `?w=1` feature https://github.com/blog/967-github-secrets

This fixes issues reported at http://forums.zotero.org/discussion/26151/problem-with-snapshot-feature-on-some-sites-sinlgepixel-gif89-file/