Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate lengths using <= instead of < #2208

Closed
wants to merge 1 commit into from

Conversation

NotBobTheBuilder
Copy link

A bio of exactly 200 characters triggers the "bio too long" message as the max value in len isn't inclusive

A bio of exactly 200 characters triggers the "bio too long" message as the max value in len isn't inclusive
@halfdan
Copy link
Contributor

halfdan commented Feb 16, 2014

The validator actually uses >: https://github.com/TryGhost/Ghost/blob/master/core/client/assets/vendor/validator-client.js#L818

If you are experiencing an issue with this, it is most likely related to #1432 and multi-byte characters.

@NotBobTheBuilder NotBobTheBuilder deleted the patch-1 branch February 16, 2014 23:54
@NotBobTheBuilder
Copy link
Author

That's not exactly what it was - I had newlines in there, which weren't being counted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants