On Mon, 28 Aug 2006 06:05:29 +0900, William Crawford wrote:

> Peter C. Verhage wrote:
>> After some more debugging I found out that the following string (and
>> other strings read from the file on disk!) cause the exception:
>> 
>>    epointment#1481
>> 
>> Seems like an ordinary string to me. But when I print this string to the
>> console, copy it and assign it directly to one of the attributes of the
>> structure (instead of reading it from the file) the problem disappears.
>> 
>> If I reassign the value of the structure attribute using:
>> 
>>    obj.attr = "#{obj.attr}"
>> 
>> The problem also magically disappears.
> <snip>
>> Does anybody have an idea what might be the problem here? And why SOAP4R
>> might be choking on this?
>> 
>> Regards,
>> 
>> Peter
> 
> I'm new to Ruby, so forgive me if I'm saying something ignorant, but...
> 
> You said you checked if it was frozen.  Did you check if it was tainted?
>

Using #{} to include a string in another string should propagate taint.

a="string".taint
"#{a}".tainted?
 ==> true

--Ken

-- 
Ken Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/