Resource icon

Unmaintained MetaMirror 1.6.1

No permission to download
As well as performing a check to see if the data is an image (with exif_imagetype), I now also strip off any file extension that is not in
('jpg','jpeg','png','gif','bmp','ico')

Safe extensions are added back onto hashed file names generated from files with parameters, so other programs can still see them as images.
This should fix problems with installs in folders off the root, like

http://example.com/xenforo
  • Like
Reactions: DRE and MasterPiece
If you have a CDN set up and reference via something like:

$config['externalDataUrl'] = 'http://example.com/data';

Then MetaMirror will now detect this, and handle renaming the URL correctly.

It will also automatically add the externalDataUrl string to the list of ignore strings if it is absolute. So you won't get in a loop of re-hosting your CDN files
  • Like
Reactions: DRE and MasterPiece
Fixed new error where cron job would crash, giving sever log errors.

Sorry about that. I was so happy with the test tool I was doing everything in that and did not realized I'd broken the cron job. All should be well.
You can now exclude forums via the options.

Files that are not images are now automatically excluded by exif_imagetype(), this both fixes certain types of broken links (redirecting to a web page), and plugs a potential security hole.

Added a useful test tool. This lets you run MetaMirror on a set of records without performing the writes, so you can see what it does. It can also just upload the files without modifying the posts, so you can make sure that the local links work, and also get an idea of what is happening.
  • Like
Reactions: DRE and MasterPiece
Images generated with a query, such as image thumbnails in Google search results, were having the query stripped off, meaning they could overwrite each other.

This is fixed in 1.1.1 by extending the filename with the md5 of the query (if any) to create a unique filename.

If you are upgrading from 1.0, this will require you to uninstall first (see 1.1.0 for details)
  • Like
Reactions: DRE and MasterPiece
Images in signatures are now (optionally) rehosted the same as images in posts.

A change to the naming of options (I did not use a prefix) requires that you uninstall and re-install MetaMirror in order to delete the badly named options. Sorry about that.

This means you will need to re-enter your ignore strings, and then re-enable the add-on.
Top Bottom