meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Caman opened proxy even if the image was on same server #208

Open nedvajz opened 8 years ago

nedvajz commented 8 years ago

http://example-site.com/image_filters/294?camanProxyUrl=http://example-site.com/uploads/image.jpg

I found out, that it was caused by wrong regex which checked if isRemote. I hope that it would help to someone who will struggle why caman does not work or is slow on his server.

I didn't test if the regex will handle all possible variations of URL addresses, as I needed to solve it immediately. So solution would be to send pull request with some dumbproof regex.

caman-missing-dash

roxblnfk commented 5 years ago

158