Forums

Group Documents
[bug] slashes not removed from description output (1 post)

  1. sanderbontje
    Member
    Posted 1 year ago #

    One of our documents was given a description containing single quotes. After saving, the description was shown with slashes appended in front of the quotes.
    Fixed it for my setup by editing index.php around line 386 and replacing
    if( BP_GROUP_DOCUMENTS_SHOW_DESCRIPTIONS && $document->description ){ echo '<br /><span class="group-documents-description">' . nl2br($document->description) . '</span>'; }
    with
    if( BP_GROUP_DOCUMENTS_SHOW_DESCRIPTIONS && $document->description ){ echo '<br /><span class="group-documents-description">' . nl2br(stripslashes($document->description)) . '</span>'; }

    http://wordpress.org/extend/plugins/buddypress-group-documents/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic