[PENNMUSH] Preserving % at input
Jason Newquist
jason at nocturne.org
Tue Feb 8 16:00:32 CST 2005
Greetings!
We've had a nagging problem on my social MUSH for a while now, and I
thought I might present it here to see if anyone can help crack it.
We have some code which allows people to simply paste a URL into the
MUSH, thus:
&WWW3_CMD Globals = $http*: @tr me/url_code =
http%0, %N, %#
&url_code then takes these arguments, adds the link to a log, and
presents the output to everyone in the room. Kinda nice. We use it
a great deal.
However, many URLs contain percent signs (%20 for space being
infamous, and other special cases abound), and this causes our code
above some trouble. According to DEBUG output, the percent signs
are gone by the time we send %0 as an argument to url_code -- the
very first time we reference it.
Is there anything we can do to preserve percentages given at input
time, before they're evaluated and thus vanish?
Jason Newquist
San Francisco Bay Area
More information about the Pennmush
mailing list