It is happening with a simple case:

<%
    $input := "Pete's estimate was vague but < $100000"
    $template := "<p>Response: ^1</p>"
   
    write (param text ($template; $input))
    write (param text ("<p>Response: ^1</p>";$input))
    write (param text ("<p>Response: ^1</p>";"Pete's estimate was
vague but < $100000"))
%>

results in:

Response: Pete's estimate was vague but < 00000

Response: Pete's estimate was vague but < 00000

Response: Pete's estimate was vague but < 00000

I don't have time to set up  a plain 4D web-served testbed to rule
NTK out. That would seem really odd though as this is happening
after the request has been handled.

-- Brad

On 9/27/11 2:04 PM, Brad Perkins wrote:
> Aparajita,
>
> Let me write a simple test case to see if it happens in isolation first.
>
> I'm not using custom delimeters for param text. With respect to
> processing, yes we pre-process the request but that is only to
> determine if A4D should handle the processing or whether a custom
> NTK server should take over. We do use NTK for A4D's web server though.
>
> I've worked around the problem by converting any $ characters in the
> comment to &#36 before calling param text. It turns out this is the
> only place I use that command in this particular application.
>
> Thanks,
>
> -- Brad
>
>
> On 9/27/11 1:49 PM, Aparajita Fishman wrote:
>>> If someone enters a comment such as "Pete's estimate was vague but
>>> near $100,000" the output text will be
>>>
>>> "Pete's estimate was vague but near "
>>>
>>> It seems to be eating the $1 and everything after that. I've
>>> verified this happens with any $ + digit entry. $1, $2 etc.
>> Not happening here. Can we see some code? Are you using custom delimiters 
>> for param text? Aren't you are doing some custom processing of the input 
>> before it gets to Active4D?
>>
>> Regards,
>>
>>    Aparajita
>>    www.aparajitaworld.com
>>
>>    "If you dare to fail, you are bound to succeed."
>>    - Sri Chinmoy   |   www.srichinmoy.org
>>
>> _______________________________________________
>> Active4D-dev mailing list
>> [email protected]
>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to