urlencode:

had this working great, then a message appeared with a % in the subject to
be passed as a url var and urlencode promptly falls over.

work around:

this

<a href="display.cfm?maillist=#maillist#&subject=#replace(threads.subject2,
"%", "~", "all")#" class="maillist">#threads.subject2#</a>

gets inperpretted by this

<cfloop from="1" to="#len(cgi.QUERY_STRING)#" index="i">
<cfif #mid(cgi.QUERY_STRING, i, 8)# is "subject=">
<cfset thread = #replace(mid(cgi.QUERY_STRING, i+8,
len(cgi.QUERY_STRING)),"%20", " ", "all")#>
</cfif>
</cfloop>
<cfset thread = #replace(thread, "~", "%", "all")#>

all i need now is a ~ and i'm stuck again, lol

1. it looks like a bug in urlencode
2. my workaround does work, but it's a bit frail using a tilda like that.
3. it looks like a lot of ugly code and I'm wondering if there's a better
way

any ideas anyone please?

Thanks!  Jenny







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230227
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to