Recent Topics

Bug 6.7.x - Blog Head Includes HTML Validation

started by on Oct 14, 2016 – Last touched: Oct 19, 2016

Oct 14, 2016 11:23    

Back-office>Collections>Collection_Name>Settings>Advanced - Scroll to: "Skin and Style"

Custom meta tag/css custom section (before </head>)

If the user inputs a css link:


<link type="text/css" rel="stylesheet" href="/some_dir/some.css" />

is converted to:


<link type="text/css" rel="stylesheet" href="/some_dir/some.css"></link>

and violate HTML standards.

The closing "</link>" gets inserted in weird places, such as after JavaScript which cause further issue.

See: /inc/_core/_param.funcs.php on line 2456 function balance_tags ($text)

//line 2519
// if($tag != 'br' && $tag != 'img' && $tag != 'hr' && $tag != 'param' && $tag != 'input')

 if($tag != 'br' && $tag != 'img' && $tag != 'hr' && $tag != 'param' && $tag != 'input' && $tag != 'link')

Oct 15, 2016 11:31

@achillis thanks for the report and fix suggestion. It's already sent to the developers pipeline, so a fix will be releases shortly.

Regards!

Oct 17, 2016 09:54

I see this is fixed in 6.7.8

Thanks


Form is loading...

powered by open-source CMS software – This forum is powered by b2evolution CMS, a complete engine for your website.