Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: FrizzleFried on May 18, 2025, 12:34:00 AM

Title: Zip File Autolink?
Post by: FrizzleFried on May 18, 2025, 12:34:00 AM
Hi...

I noticed on my new forum if you type anything with a zip extension (for example: test.zip) it creates a link out of "test.zip" pointing to https://test.zip ... is this a setting I messed up somewhere?

Title: Re: Zip File Autolink?
Post by: FrizzleFried on May 18, 2025, 12:34:30 AM
Actually it does the very same thing here too... see... it created a link out of test.zip??

Why?

Title: Re: Zip File Autolink?
Post by: Aleksi "Lex" Kilpinen on May 18, 2025, 03:25:15 AM
Because someone decided (not us) that .zip is a perfectly valid tld.
https://en.wikipedia.org/wiki/.zip_(top-level_domain)
Title: Re: Zip File Autolink?
Post by: GL700Wing on May 18, 2025, 03:35:40 AM
Quote from: FrizzleFried on May 18, 2025, 12:34:00 AMI noticed on my new forum if you type anything with a zip extension (for example: test.zip) it creates a link out of "test.zip" pointing to https://test.zip ... is this a setting I messed up somewhere?
@FrizzleFried If you want to stop that from happening the SMF 2.1 Autolink Basic URLs (https://custom.simplemachines.org/index.php?mod=4370) mod will only automatically link basic URLs (ie, only URLs starting with 'ftp://', 'ftps://', 'http://', 'https://' or 'www.', and email addresses) as per SMF 2.0.
Title: Re: Zip File Autolink?
Post by: Sesquipedalian on May 18, 2025, 12:12:47 PM
It's also worth noting that in SMF 3.0 this problem will be properly and permanently solved.

Specifically, in SMF 3.0 auto-linking will happen in the editor while composing a post and the user will be able to unlink an auto-link on the fly. This is different from SMF 2.x, where auto-linking happens during the output phase and is therefore outside of the user's control.

This means that when the user types "test.zip" into their post, the editor will initially recognize it as a URL and auto-link it (because, yes, someone at ICANN decided that "zip" should be allowed as a TLD), but then the user can unlink it and it will stay unlinked thereafter.
Title: Re: Zip File Autolink?
Post by: FrizzleFried on May 20, 2025, 11:48:40 AM
Thank you both.  :)