6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7926] Message option "Show All Headers" causes error
*
Your Email Address
*
Spam protection
Enter the letters below:
__ .__..__ ._..___ / `| |[__) | [__ \__.|__|| \_|_[___
Comment
>> Right, it's not relevant for template evaluation, but > >> Horde::selfUrl() can contain raw query parameters, so those need to > >> be escaped somewhere along the way. I didn't see that happening > >> already, but if it is, then yes, the commits are irrelevant (and > >> incorrect). > > > > AFAICT, selfUrl() (as called by message.php) has the $full param set > to false; in selfUrl, Horde::url() is called with $full = false; and > the URL will necessarily have '&' param separators, instead of '&' > separators so htmlentities() will be called on the generated URL at > the bottom of url(). Thus, anything appearing in the URL will/should > be escaped. > > > > As for smime.php, we should probably use > htmlspecialchars(html_entity_decode(Util::getFormData('reload'))) > instead of htmlspecialchars(Util::getFormData('reload')) (we use the > former elsewhere in that file). Looks like we aren't doing the > html_entity_decode() call in pgp.php in either place we are > processing 'reload' form data, so we should probably be doing that. > > > > Does any of this sound sane/rational/correct?
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers