meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation

Home Page:http://camanjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Caman opened proxy even if the image was on same server

nedvajz opened this issue · comments

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