WordPress.org

Forums

Social Sharing Toolkit
BUGFIX: og:description needs escaping (1 post)

  1. BramNL
    Member
    Posted 1 year ago #

    At line 569, the excerpt is echoed without escaping. This needs a htmlspecialchars(). Here is the fix:

    social_sharing_toolkit.php
    Line 567-570. (The important line is 569)

    if ($excerpt != '') {
    				echo '
    		<meta property="og:description" content="' . htmlspecialchars($excerpt) . '"/>';
    			} else {

    http://wordpress.org/plugins/social-sharing-toolkit/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic