I was using this plugin in conjunction with another plugin which generates posts for me. It was inserting an image with the src attribute being a long url with a quertystring. The images were properly being added to my site but the url was messed up and ended up being a broken link on the frontend. It looked like the url was being escaped an extra time after it generated the filename or wordpress escaped it again on upload?
Is there a way to have the filename at line 302 properly escaped to match what gets uploaded to wordpress?