# SiteSetting numbers not properly validated

**URL:** <https://meta.discourse.org/t/sitesetting-numbers-not-properly-validated/25026>\
**Category:** Bug\
**Created:** [9 فبراير 2015، 5:58م UTC](https://meta.discourse.org/t/sitesetting-numbers-not-properly-validated/25026 "2015-02-09T17:58:51Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [10 فبراير 2015، 12:33ص UTC](https://meta.discourse.org/t/sitesetting-numbers-not-properly-validated/25026/8 "2015-02-10T00:33:36Z")

</div>

Actually, it’s not that bad.

It breaks here on line 362:

> <https://github.com/discourse/discourse/blob/main/lib/site_setting_extension.rb#L347-L364>

It looks like writing and reading the invalid setting to/from PostgreSQL works nicely, but this method just can’t handle a Ruby `Bignum`…

---

_[View the full topic](https://meta.discourse.org/t/sitesetting-numbers-not-properly-validated/25026)._
