.jpeg images being pulled as .jpe
-
hello!
many thanks for your plugin which works really smoothly and it’s very easy to customize.I stumbled in a small bug which causes a glitch when the image being pulled is a .jpeg
the code on feedzy-rss-feeds-admin-abstract.php line 604 and 598 is
$pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/i';
but in that way when the image is .jpeg it’s going to match jpe before jpeg and therefore $matches[0] will be the image with .jpe and hence the src won’t find the actual image.
the fix it’s easy. It’s enough to just swap and put jpeg before jpe in the pattern:
$pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpeg|JPEG|jpe|JPE|gif|GIF|png|PNG)/i';
cheers!
- The topic ‘.jpeg images being pulled as .jpe’ is closed to new replies.