Links with [] in can be truncated

Started by Arantor, July 10, 2024, 01:42:25 PM

Previous topic - Next topic

Arantor

If you have a link such as:

https://custom.simplemachines.org/index.php?action=themes;major_smf_versions[2.1]=2.1
you need to wrap it in [url] but if you let the preprocessor handle it (e.g. by way of non AJAX preview) you end up with the following construction:

[url]https://custom.simplemachines.org/index.php?action=themes;major_smf_versions[2.1]=2.1[/url]
which gets turned into

[url="https://custom.simplemachines.org/index.php?action=themes;major_smf_versions[2.1]=2.1"]https://custom.simplemachines.org/index.php?action=themes;major_smf_versions[2.1]=2.1[/url]
but the link is truncated at the first closing bracket.
Holder of controversial views, all of which my own.


Arantor

Incidentally this is one reason Unknown used to test with brackets so that he could verify quoting would correctly attribute his name with the square brackets.
Holder of controversial views, all of which my own.


Advertisement: