laterpay / laterpay-wordpress-plugin

The official LaterPay plugin for selling digital content with WordPress.
18 stars 10 forks source link

Image protection issue with PDF plugin "wp-mpdf" #724

Closed twoldrich closed 9 years ago

twoldrich commented 9 years ago

A customer reported that if he tries to print a purchased post that contains images as PDF with the plugin "wp-mpdf", only the encrypted links are displayed in this PDF.

twoldrich commented 9 years ago

According to @AliaksandrVahura-ScienceSoft this plugin performs a check for the filetype of each image, which our encrypted link didn't pass. @AliaksandrVahura-ScienceSoft fixed the PDF plugin on the customer's side, so I think this can be closed.

AliaksandrVahura-ScienceSoft commented 9 years ago

Actually there were 2 small problems:

  1. Plugin takes image src from the content and image source url contains & instead of &, so not all params were present in request.
  2. Can't set cookies on load file via curl, so request failed. I've added filter which prevent url modification and added this filter into plugin.