SMF Development > Bug Reports
[4364] 2.0 RC3 - urls that contain [brackets] are truncated
rbeuker:
When you try to use a link like the one below, SMF will truncate it:
--- Code: ---http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews[tt_news]=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
--- End code ---
Example:
=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc]http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews[tt_news]=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
We have solved it, by manually replacing the brackets:
--- Code: ---[ becomes %5B
] becomes %5D
--- End code ---
So after doing the manual changes, the link looks like:
--- Code: ---http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews%5Btt_news%5D=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
--- End code ---
And now it works:
http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews%5Btt_news%5D=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
Could this be fixed in RC4? :)
Thanks,
Ronald
Arantor:
It only truncates it if you let it try to auto convert to URLs, and this has been discussed before, in this very board in fact.
Specifically: http://www.simplemachines.org/community/index.php?topic=363099.0
See also: http://www.simplemachines.org/community/index.php?topic=377762.0
rbeuker:
--- Quote from: Arantor on May 13, 2010, 08:30:12 AM ---It only truncates it if you let it try to auto convert to URLs
--- End quote ---
I'm using the
--- Code: ---[url]
--- End code ---
and
--- Code: ---[/url]
--- End code ---
tags to create the URL.
Does that mean that I'm trying to auto convert to URLs?
If yes, how could I prevent this auto conversion? :)
Arantor:
Hmm, I assumed you were just posting the URL itself, which would attempt to auto convert.
What *exactly* are you typing?
rbeuker:
Wow, you're fast! 8)
Ok, here goes:
The first line below shows what I will enter on the 2nd line:
--- Code: ---[url]http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews[tt_news]=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc[/url]
--- End code ---
=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc]http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews[tt_news]=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
This is a mess... :-\
And now another test, using the manual fix (note that, in the middle of the URL, I have replaced the opening bracket with %5B and I have replaced the closing bracket with %5E)
--- Code: ---[url]http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews%5Btt_news%5D=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc[/url]
--- End code ---
http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews%5Btt_news%5D=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
And this works!! ;D
And let's also try *without* using the url tags--in other words, using the automatic conversion by SMF:
Using the original URL:
http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews[tt_news]=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
Nope, not working... although it looks better than the 1st URL in this message.
Using the manually fixed URL:
http://www.trosradar.nl/index.php?id=artikel_detail&tx_ttnews%5Btt_news%5D=27928&cHash=ad35a38d5899c4d722702bda6f8bd7dc
Yes, this also works! :)
By the way, I wholeheartedly agree that websites should not use square brackets in their URLs. Still, it would be great if SMF could handle them (in particular when the url tags are used). :D
Where/how could I suggest this for a 2.0 RC4 version?
Navigation
[0] Message Index
[#] Next page
Go to full version