WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager ESS
[resolved] ESS Feed incorrectly shows URL (4 posts)

  1. dnk6742
    Member
    Posted 6 months ago #

    Thank you for the plugin.

    I have problem with the feed. It seems to double-run the htmlspecialchars() function. URL in the feed looks as follows:
    http://volkhonkagrand.ru/?post_type=event&&p=201
    (@@amp;amp; where @ substitutes &).
    Changing FeedWriter.php line 742 from $nodeText .= htmlspecialchars( $tagContent, ENT_NOQUOTES ) to
    $nodeText .= $tagContent helps, yet "&" still shouldn't show up in the URL, AFAIK.

    Please fix the problem since the plugin - as well as EM itself is awesome and I'd be glad to buy the full version.

    http://wordpress.org/plugins/events-manager-ess/

  2. dnk6742
    Member
    Posted 6 months ago #

    Adding double_encode = false as fourth parameter to all htmlspecialchars () calls helps to fix the problem.

  3. essfeed
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,
    I've look closer to your bug report and I've placed the fourth parameter as you suggested to False with the ENT_QUOTES constant:
    $nodeText .= htmlspecialchars( $tagContent, ENT_QUOTES, self::CHARSET, FALSE )

    we have to leave the htmlspecialchars because in some cases the XML file can't be displayed if the chars & in not properly encoded as &

    Thanks for your report.

  4. dnk6742
    Member
    Posted 6 months ago #

    So be it. Thanks for the fix!

Reply

You must log in to post.

About this Plugin

About this Topic