# Un valore elevato per "max lunghezza parole del titolo" causa errore server

**URL:** <https://meta.discourse.org/t/large-value-for-title-max-word-length-causes-server-error/319656>\
**Category:** Bug\
**Tags:** pr-welcome\
**Created:** [1 Agosto 2024, 3:03pm UTC](https://meta.discourse.org/t/large-value-for-title-max-word-length-causes-server-error/319656 "2024-08-01T15:03:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [1 Agosto 2024, 3:03pm UTC](https://meta.discourse.org/t/large-value-for-title-max-word-length-causes-server-error/319656/1 "2024-08-01T15:03:16Z")

</div>

- Imposta `title max word length` su `2000000000`
- Prova a creare un argomento
- Ricevi un errore 500
- Gli argomenti non possono essere creati

```plaintext
RegexpError (numero troppo grande per l'intervallo di ripetizione: /\\p{Alnum}{2000000001,}/)
lib/text_sentinel.rb:62:in `seems_unpretentious?'
lib/text_sentinel.rb:45:in `valid?'
lib/validators/quality_title_validator.rb:12:in `validate_each'
lib/topic_creator.rb:24:in `valid?'
lib/has_errors.rb:13:in `validate_child'
lib/post_creator.rb:133:in `valid?'
lib/post_creator.rb:187:in `create'
lib/new_post_manager.rb:318:in `perform_create_post'
lib/new_post_manager.rb:252:in `perform'
app/controllers/posts_controller.rb:215:in `create'

```

Introdotto [la scorsa settimana](https://github.com/discourse/discourse/commit/73ce3589adf2b859ac5991d65ab405f280dcd292). Il massimo è [100000](https://github.com/search?q=repo%3Aruby%2Fruby%20ONIG_MAX_REPEAT_NUM&type=code).

---

_[View the full topic](https://meta.discourse.org/t/large-value-for-title-max-word-length-causes-server-error/319656)._
