GravityPDF / gravity-pdf

Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.
https://gravitypdf.com
88 stars 21 forks source link

Merge Tags stripped from Background Image setting instead of processing #1406

Closed jakejackson1 closed 1 year ago

jakejackson1 commented 1 year ago

Description When using the Background Image feature with a merge tag in the value, it is automatically stripped out when output in the PDF via esc_raw_url().

Step To Reproduce Steps to reproduce the behavior:

  1. Setup a Core PDF on the form
  2. In the Background Image setting insert a URL to an image in the media library
  3. Add a merge tag to the image URL
  4. View the PDF and append URL with ?html=1
  5. View the page source and see the merge tag was not correctly converted to the associated value

Expected behavior Merge tags should be processed correctly. Because we need to escape on output, merge tags should be pre-processed for this particular field setting.

jakejackson1 commented 1 year ago

Notify HS issues with tag background-image-tags upon fix