News:

Join the Facebook Fan Page.

Main Menu

Zip File Autolink?

Started by FrizzleFried, May 18, 2025, 12:34:00 AM

Previous topic - Next topic

FrizzleFried

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?


FrizzleFried

Actually it does the very same thing here too... see... it created a link out of test.zip??

Why?


Aleksi "Lex" Kilpinen

Because someone decided (not us) that .zip is a perfectly valid tld.
https://en.wikipedia.org/wiki/.zip_(top-level_domain)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

GL700Wing

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 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.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Sesquipedalian

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.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

FrizzleFried

Thank you both.  :)

Advertisement: