Support » Plugin: Participants Database » [Plugin: Participants Database] Quote escaping in group descriptions

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    DanDzina,

    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.

    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.

    Plugin Author xnau webdesign

    (@xnau)

    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:

    orginally:
    <?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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Participants Database] Quote escaping in group descriptions’ is closed to new replies.