MyBB Community Forums

Full Version: A potential security issue was found in the template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi everyone , when i put these codes in showthread template , i get this error :

The following errors were encountered:
  • A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.
these codes just used for improving my seo site ,


<title>{$thread[‘subject’]} – {$mybb->settings[‘bbname’]} – Page {$page}</title>
<meta name="description" content="{$thread[‘postpreview’]} {$page}" />
<link rel="canonical" href="https://www.rehlds.ir{$_SERVER[‘REQUEST_URI’]}">


<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "NewsArticle",
"headline": "{$thread[‘subject’]}",
"datePublished": "<?=my_date($mybb->settings[‘dateformat’], $thread[‘dateline’])?>",
"description": "{$thread[‘postpreview’]}",
"image": {
"@type": "ImageObject",
"height": "",
"width": "",
"url": "https://rehlds.ir/images/dntadvantage/Rehlds-Logo.png"
},
"author": "{$thread[‘username’]}",
"publisher": {
"@type": "Organization",
"logo": {
"@type": "ImageObject",
"url": "https://rehlds.ir/images/dntadvantage/Rehlds-Logo.png"
},
"name": "Rehlds amxmodx cs 1.6"
},
"articleBody": ""
}
</script>

<meta property="og:type" content="article">
<meta property="og:title" content="{$thread[‘subject’]}">
<meta property="og:url" content="https://www.rehlds.ir{$_SERVER[‘REQUEST_URI’]}">
<meta property="og:image" content="https://rehlds.ir/images/dntadvantage/Rehlds-Logo.png">
<meta property="article:author" content="Rehlds amxmodx cs 1.6"> 
in this line
"datePublished": "<?=my_date($mybb->settings[‘dateformat’], $thread[‘dateline’])?>",
you can not use <?= or ?> . you can not use php codes in templates By default