Skip to content

Error when validate a comment #5

Description

@Hywan

Try with “foo” as author and an empty space in the comment.

Thanks!

Activity

  1. osaris commented on Dec 12, 2012

    @osaris
    Owner

    Known bug. Form is valid (isValid() is true) because there's content in each field but we strip_tags and trim before saving :

    https://github.com/osaris/hoablog/blob/master/Application/Model/Comment.php#L56-62

    and the ValidationFailed exception isn't handled in the controller.

    I'll handle the exception in the controller as a temporary fix but we should discuss this case to find a more generic solution imho.

  2. Hywan commented on Dec 12, 2012

    @Hywan
    ContributorAuthor

    Ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions