Hi,
I'm maintaining a website of a client who's using SH404.
I'm not looking for support or help just wanted to report an issue as I did not find any option on "get support" page for some reason.
If a joomla article includes styles the component generates invalid description. Example:
Article:
[code type="markup"]
<style>h1 {color: red}</style>
<p>This is a great article</p>
[/code]
The generated description is:
[code type="markup"]<meta name="description" content="h1 {color: red} Website title - This is a great article">[/code]
but I'd expect:
[code type="markup"]<meta name="description" content="Website title - This is a great article">[/code]
this can be fixed in metadata.php now:
[code type="markup"] $expressions = array(
'/<script\s[^>]*>.*<\/script>/uUis',[/code]
fixed:
[code type="markup"]
$expressions = array(
'/<style>.*<\/style>/uUis',
'/<script\s[^>]*>.*<\/script>/uUis',[/code]
With thanks,
Peter
I'm maintaining a website of a client who's using SH404.
I'm not looking for support or help just wanted to report an issue as I did not find any option on "get support" page for some reason.
If a joomla article includes styles the component generates invalid description. Example:
Article:
[code type="markup"]
<style>h1 {color: red}</style>
<p>This is a great article</p>
[/code]
The generated description is:
[code type="markup"]<meta name="description" content="h1 {color: red} Website title - This is a great article">[/code]
but I'd expect:
[code type="markup"]<meta name="description" content="Website title - This is a great article">[/code]
this can be fixed in metadata.php now:
[code type="markup"] $expressions = array(
'/<script\s[^>]*>.*<\/script>/uUis',[/code]
fixed:
[code type="markup"]
$expressions = array(
'/<style>.*<\/style>/uUis',
'/<script\s[^>]*>.*<\/script>/uUis',[/code]
With thanks,
Peter