×
K5.1.1 is released (10 Jun 2018)

The Kunena team is pleased to announce Kunena 5.1.1 [K 5.1.1].
Please read the blog post for information:

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Idea Rss Feed Validator

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
2 years 2 months ago #1 by Trony
Rss Feed Validator was created by Trony
I have submitted Rss Feed of Kunena on this www.feedvalidator.org/ and it has found this error:

style attribute contains potentially dangerous content: max-height


So I modded:

1) com_kunena ► template ► system ► layouts ► attachment ► item ► image.php
 
$doctype    = $document->getType();
// Only render for HTML output
if ($doctype == 'html') {
$attributesLink = $config->lightbox ? ' rel="lightbox[imagelink' . $attachment->mesid . ']"' : '';
$attributesImg = ' style="max-height:' . (int) $config->imageheight . 'px;"';
}
 

2) com_kunena ► template ► system ► layouts ► bbcode ► image ► default.php
 
$doctype    = $document->getType();
// Only render for HTML output
if ($doctype == 'html') {
$attributesLink = $config->lightbox ? ' rel="lightbox[gallery]"' : '';
$attributesImg = ' style="max-height: '. (int) $config->imageheight . 'px;"';
$attributesImg .= $size ? ' width="' . (int) $size . '"' : '';
}
 

Now Rss Feed is Valid.
(Tool says "Self reference doesn't match document location" but I don't know how to Fix it)

What do you think ?!?

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.070 seconds