Ampersands in url query are converted into html entities

Created on 10 July 2014, about 11 years ago
Updated 20 June 2025, about 1 month ago

When parsing urls that contain queries, the query separator ampersands are converted into the '&' html entity. Eg:
http://server.com/?param1=val1&param2=val2
gets to writeHTML() as
http://server.com/?param1=val1&param2=val2

Replacing '& amp ;'* with a simple '&' before writeHTML() in _pdf_using_mpdf_generator() function fixes the problem.
(*) The spaces are to prevent the coversion on the post text

🐛 Bug report
Status

Closed: outdated

Version

2.5

Component

Code

Created by

🇨🇱Chile dpliscoff

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024