heiglandreas / Org_Heigl_Hyphenator

Provide TeX-Hyphenation to PHP
http://orgheiglhyphenator.readthedocs.org
MIT License
54 stars 14 forks source link

Hyphenating the word "vereinfachen" (German) triggers iOS parental controls content blocker #44

Open ynamite opened 5 years ago

ynamite commented 5 years ago

Hi,

Firstly, thanks for the awesome library :)

I'm experiencing quite a peculiar issue concerning iOS Safari in relation to parental controls. If parental controls are active and set to limit adult web content, iOS Safari in some cases won't display a website that contains the hyphenated word "vereinfachen" (German for "simplify"). Instead it will show this:

grafik

This happens in iOS 12.1.4, if the option Settings -> Screen Time -> Content & Privacy Restrictions -> Content Restrictions -> Web Content is set to Limit Adult Websites and if some other (currently unknown) criteria is met.

I can easily reproduce this issue on the aforementioned website on different iPhone/iPad devices. I can just as easyily fix it by simply removing the word "vereinfachen" from the hyphenated string or by not using Hyphenator at all. I haven't however been able to reproduce the issue in another environment where the HTML structure differs. The implication is that the surrounding HTML does seem to matter to an extent and that the issue may be somewhat exclusive to the website I'm working on. Not sure

Note it doesn't seem to matter if &shy; or <i></i>&shy; is used. Also the website in question does not contain any adult content in any shape or form. On the contrary, it's a website aimed at teenagers.

Any ideas as to what's going on here? I can supply an example page if that helps.

heiglandreas commented 4 years ago

Sorry for getting back to you so late.

But I have actually no clue what is happening there.... :flushed:

I will check whether I can reproduce that. Thanks for mentioning!

ynamite commented 4 years ago

No worries, I imagine it'll be pretty challenging to debug, never mind reproduce. I've since worked around it by simply using a different word with a similar connotation, as I just couldn't seem to fix it any other way.

It could just as well be a weird bug with the iOS Content Restriction policy rules.

If it helps I could try and reproduce it and share the link to the page in question in a PM. Let me know.