Fixed Scrubbing out x-apple-data-detectors links in posts...

ENF

Well-known member
So, I've been cleaning up some stuff around our site and I noticed in some of the link error reports, there were these links embedded in posts like so:

https://domainxyz.com/x-apple-data-detectors://0 < The zero (0) on end changes to other numbers depending on the input. (so it seems)

When viewing the source of the displayed page, the entire string looks like a typical href line: (again, this from inside a normal post)

<a href="https://domainxyz.com.com/x-apple-data-detectors://0" class="internalLink">at 10am</a>

This was linked to a post where someone had written "10am" in a post which I'm guessing came from an iPhone/iPad or something Apple'ish that generates those links in messages when you type dates or times. (So you can book your calendar by clicking on the blue link, etc.)

This is not a widespread problem (yet) as there only around ~50 of these to clean up.

Just curious if there's a way to filter or scrub these out before the post submitted. Functionality wise, it's not a big deal.. but it does put these junk links in that are annoying.

Thanks.
 

Mike

XenForo developer
Staff member
I think this might indicate they pasted from mail or some other app that tries to do detection to integrate with a calendar (for example).

I'll move this to bugs as we may be able to strip them out on save.
 
Reactions: ENF

ENF

Well-known member
Thanks for the attention on this... I'll have to ask the posters and see how they put the text in. If any new info comes back, I'll post it here later.
 

Mike

XenForo developer
Staff member
I've made changes to detect this when we do the conversion back to BB code and ignore links with this protocol (and a few others).
 
Top