Re: Re: exec/load/http.js
By: KenDB3 to deuce on Fri Mar 27 2015 10:30:41
HTTP and Posts. If there is a URL, the web server is smart enough to enclose it in a hyperlink, but if it is more than 80 characters, it will close the html tag at the end of the line, and the next line will continue with the URL's text, however not include it in the hyperlink. It's not a terrible thing, just annoying.
Looking at 'web/root/msgs/msg.ssjs' I see the following at line 119:
template.body=word_wrap(template.body,80);
template.body=html_encode(template.body,true,false,false,false);
template.body=make_links(template.body);
So, word_wrap is breaking 'words' greater than 80 characters (the URL in the case of the message you linked to) and then make_links can only assume that the URL ends at the end of the line. Changing the order of things here won't really help, and disabling the word_wrap would cause other problems.
I can think of a few hacky solutions, but none seem particularly great. One would be to turn 'make_links' into a two-stage affair. Others involve URL shorteners, either replacing URLs in messages permanently or at the time when a message is viewed on the web.
---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com