Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix munging of linked external images #936

Merged
merged 3 commits into from May 21, 2014

Conversation

greezybacon
Copy link
Contributor

htmLawed stripped/discarded <div> tags nested inside inline tags such as <a>. The previous replacement engine would replace <img> tags with <div> tags and would cause the HTML to be corrupted by htmLawed.

This patch uses <span> tags which have CSS rules to be displayed as inline-blocks. This should stay truer to the normal sizing and placement of the original <img> tag.

References:
http://osticket.com/forum/discussion/77309/osticket-1-9-poor-html-handling

Jared Hancock added 3 commits May 21, 2014 13:24
And use admin-defined site logo
htmLawed stripped/discarded <div> tags nested inside inline tags such as
<a>. The previous replacement engine would replace <img> tags with <div>
tags and would cause the HTML to be corrupted by htmLawed.

This patch uses <span> tags which have CSS rules to be displayed as
inline-blocks. This should stay truer to the normal sizing and placement of
the original <img> tag.
Previously, the display of the button was incorrect and more than one button
might have been displayed.
protich added a commit that referenced this pull request May 21, 2014
Fix munging of linked external images

Reviewed-By: Peter Rotich <peter@osticket.com>
@protich protich merged commit 49deb1b into osTicket:develop May 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants