# Problem with min pvt message length and min pvt message title length

**URL:** <https://meta.discourse.org/t/problem-with-min-pvt-message-length-and-min-pvt-message-title-length/44468>\
**Category:** Bug\
**Created:** [2016年五月19日 01:43 UTC](https://meta.discourse.org/t/problem-with-min-pvt-message-length-and-min-pvt-message-title-length/44468 "2016-05-19T01:43:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BadlyDrawnBoy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/badlydrawnboy/32/121757_2.png) [@BadlyDrawnBoy](https://meta.discourse.org/u/BadlyDrawnBoy)\
**Post date:** [2016年五月19日 01:43 UTC](https://meta.discourse.org/t/problem-with-min-pvt-message-length-and-min-pvt-message-title-length/44468/1 "2016-05-19T01:43:14Z")

</div>

Hi,

I’ve set min pvt msg length to 1 and min pvt msg title length to 0.

However, when sending a message to someone, Discourse seems to consider the min lengths as 2 and 1, respectively.

Also, it seems that non-alphanumeric characters are not handled in the same way.

Running latest, v1.6.0.beta4 +84

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年五月19日 02:06 UTC](https://meta.discourse.org/t/problem-with-min-pvt-message-length-and-min-pvt-message-title-length/44468/2 "2016-05-19T02:06:00Z")

</div>

Zero is an unsupported setting. @techapj can you make sure the site settings validator values prevent this?

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年五月19日 11:02 UTC](https://meta.discourse.org/t/problem-with-min-pvt-message-length-and-min-pvt-message-title-length/44468/3 "2016-05-19T11:02:02Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/29ca2f11ba0c4b4f66d4ac64cdf371252921d1f4](https://github.com/discourse/discourse/commit/29ca2f11ba0c4b4f66d4ac64cdf371252921d1f4)

Verified that the setting is respected.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年五月19日 11:02 UTC](https://meta.discourse.org/t/problem-with-min-pvt-message-length-and-min-pvt-message-title-length/44468/4 "2016-05-19T11:02:09Z")

</div>


