ID:942883
 
BYOND Version:497
Operating System:Windows 7 Pro
Web Browser:Chrome 21.0.1180.83
Applies to:Dream Daemon & Dream Seeker
Status: Verified

A member of our crack team of bug testers has verified that this issue is reproducible, and has handed it off to the development team for investigation.
Descriptive Problem Summary:
I'm getting some garbled/odd output out of html_encode, which is neither displaying correctly for DreamSeeker or in a telnet client.

Numbered Steps to Reproduce Problem:
1) Boot up a world with the example code below
2) Use the Test verb
3) Observe the erroneous case (#3 line)

Code Snippet (if applicable) to Reproduce Problem:
client/Command(T) {
src << html_encode(T);
src << T;
}

mob/verb/Test() {
client.Command("http://www.google.com/");
client.Command("<A \"http://www.google.com/\">Test</A>");
}


Expected Results:
For html_encode() to return text which is exactly equivalent to the text passed into it.

Actual Results:
The ending " and > get garbled.

Does the problem occur:
Every time
For clarification, the problem here is not html_encode() but rather the autolink behavior which encodes URLs as links. Because html_encode() converts the quote character as &#34; which are valid characters in URLs, the autolink algorithm assumes the URL has not ended.

Until the autolink behavior is changed, a workaround for this issue is to replace the &#34; with " using a text library or a short code snippet.

I've changed "Applies To" from DM Language to Dream Daemon & Dream Seeker. Normally autolink is DS behavior, but per our discussion this also impacts telnet on the server side.
Stephen001 changed status to 'Verified'
Still exists on 506.1246.