# Unexplainable censoring on title

**URL:** https://meta.discourse.org/t/unexplainable-censoring-on-title/56219
**Category:** Bug
**Created:** [23.Январь.2017 15:15:13 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219 "2017-01-23T15:15:13Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![hallaathrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallaathrad/32/121322_2.png) [@hallaathrad](https://meta.discourse.org/u/hallaathrad)
#### Post date: [23.Январь.2017 15:15:14 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/1 "2017-01-23T15:15:14Z")

</div>

So as I was going to post a link to an article from google’s blog like so:

 ![](https://global.discourse-cdn.com/meta/original/3X/0/9/0960af0461ece579c67039c335ba8a4cbc9c6c1c.png)

our instance of Discourse is giving me the following message:

 ![](https://global.discourse-cdn.com/meta/original/3X/7/9/796ae11957043cf91dae6057ae5ec80ef0777501.png)

Any ideas what went wrong, and how to fix it?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [23.Январь.2017 15:15:57 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/2 "2017-01-23T15:15:57Z")

</div>

The word `password` has the word `ass` in it.

---

<div class="post-metadata">

### Author: ![hallaathrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallaathrad/32/121322_2.png) [@hallaathrad](https://meta.discourse.org/u/hallaathrad)
#### Post date: [23.Январь.2017 15:17:28 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/3 "2017-01-23T15:17:28Z")

</div>

… you’re kidding me. right?  
Password is a censored word therefor?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23.Январь.2017 15:29:49 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/4 "2017-01-23T15:29:49Z")

</div>

Does seem somewhat buggy it would not be enforce word boundaries, @eviltrout can you have a quick look?

---

<div class="post-metadata">

### Author: ![hallaathrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallaathrad/32/121322_2.png) [@hallaathrad](https://meta.discourse.org/u/hallaathrad)
#### Post date: [23.Январь.2017 15:30:41 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/5 "2017-01-23T15:30:41Z")

</div>

Thanks @sam. I would offer to help, but this stuff is beyond my understanding.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [23.Январь.2017 15:55:40 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/6 "2017-01-23T15:55:40Z")

</div>

Also, we should fix that message. It’s very bad UX.

At the very least, something like `.split("|").sort.join(", ")`.

---

<div class="post-metadata">

### Author: ![hallaathrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallaathrad/32/121322_2.png) [@hallaathrad](https://meta.discourse.org/u/hallaathrad)
#### Post date: [23.Январь.2017 16:10:36 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/7 "2017-01-23T16:10:36Z")

</div>

You might want to add this test into your CI server, since it is something that could easily affect a lot of users.  
And @zogstrip, though I do agree the way it’s being displayed could be improved, perhaps it’d be better not to show the list at all; if only to avoid helping them find workarounds… and though I’ve found it amusing to read all the weird censored terms, to some people this could result as an unpleasant shocker. Particularly if they didn’t put any of these words in it.  
e.g. Imagine we were censoring images, and a list of actual explicit pictures popped up to say “these are censored”. Not bueno.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [23.Январь.2017 16:12:15 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/8 "2017-01-23T16:12:15Z")

</div>

That’s even better, but requires more work: only show the censored words.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [23.Январь.2017 16:21:26 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/9 "2017-01-23T16:21:26Z")

</div>

Ah ha. This is the validation I added. Will fix.

---

<div class="post-metadata">

### Author: ![geoff777](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoff777/32/202388_2.png) [@geoff777](https://meta.discourse.org/u/geoff777)
#### Post date: [23.Январь.2017 16:38:42 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/10 "2017-01-23T16:38:42Z")

</div>

Title includes one or more censored words:

Well it actually does Title : tit - having that list pop up is more offensive than some of the words.

If my community of nuns mention spotting a blue tit in the convent gardens … this list will pop up …? lol

---

<div class="post-metadata">

### Author: ![hallaathrad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallaathrad/32/121322_2.png) [@hallaathrad](https://meta.discourse.org/u/hallaathrad)
#### Post date: [23.Январь.2017 18:10:14 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/11 "2017-01-23T18:10:14Z")

</div>

Context matters. It’s safe to say some instances would not only allow but require actual body parts to be mentioned (e.g. medical forums).  
not sure how this is handled in those scenarios.

---

<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: [24.Январь.2017 03:21:49 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/12 "2017-01-24T03:21:49Z")

</div>

This fix needs to be backported to 1.7 @tgxworld so make sure it is tagged as such.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [24.Январь.2017 05:12:29 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/13 "2017-01-24T05:12:29Z")

</div>

The feature was added post 1.7 so no need to backport 🙂

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

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [24.Январь.2017 05:12:33 UTC](https://meta.discourse.org/t/unexplainable-censoring-on-title/56219/14 "2017-01-24T05:12:33Z")

</div>


