Participants Database
Quote escaping in group descriptions (4 posts)

  1. DanDzina
    Posted 4 years ago #

  2. xnau webdesign
    Plugin Author

    Posted 4 years ago #


    It's probably not possible to include HTML in the description for now. I'll take a look to see if this can be avoided.

  3. DanDzina
    Posted 4 years ago #

    Html in general works, up until you have a quoted attribute.
    The issue exists for quotes or double quotes anywhere in the description regardless of using it on html though. Every time you update something on the groups, the quotes get doubled up with additional escape characters.

  4. xnau webdesign
    Plugin Author

    Posted 4 years ago #

    Ah, yes. Bug. Thanks for pointing this out, I'll have it fixed in the next update.

    Meanwhile, I'll explain how to fix this in your plugin. You'll need to edit two files.

    First, in file "manage_fields.php" put this in line 416 (it's a blank line)

    $value = Participants_Db::prepare_value( $value );

    Then, in file "classes/Signup.class.php", line 334:

    <?php printf( ( empty( $new_group['description'] ) ? '<h3>%1$s</h3>' : '<h3>%1$s</h3><p>%2$s</p>' ),$new_group['title'], $new_group['description'] )?>

    change this to:
    <?php printf( ( empty( $new_group['description'] ) ? '<h3>%1$s</h3>' : '<h3>%1$s</h3><p>%2$s</p>' ),$new_group['title'], stripslashes($new_group['description']) )?>

    That will get your HTML quoted attributes working.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Participants Database
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.