Page 1 of 1

Not wanted Characters.

Posted: Fri May 29, 2009 9:30 pm
by gerry.odea
Here is my sample script.

<a name=SEARCH>
<$searchurl = "http://www.whateverurl.com/?useragent=uayzzy">
1.searchurl=$searchurl<P>
<$useragent=" Thunderstone Support ">
<strfmt "%U" $useragent>
<$useragent=$ret>
2.useragent=$useragent<P>
<sandr "uayzzy" $useragent $searchurl>
<$liveurls = $ret>
3.liveurls=$liveurls
</a>


The output is:

1. searchurl=http://www.whateverurl.com/useragent=uayzzy

2. useragent=+Thunderstone+Support+

3. liveurls=http://www.whateverurl.com/useragent=1T ... e2Support3

Why is the output in #3 showing 1Thunderstone2Support3 and not +Thunderstone+Support+


Thanks in Advance.
Gerry

Not wanted Characters.

Posted: Mon Jun 01, 2009 10:27 am
by mark
Because + is special in sandr replace strings.
If you're going to use arbitrary strings in a replace you need to escape special chars first. See the sandr docs for what characters are special.