Re: LastIndexOf error
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: LastIndexOf error

From: Lasse Reichstein Nielsen <lrn@hotpop.com>
Date: Wed Jan 25 2006 - 08:19:45 CET

RobG <rgqld@iinet.net.au> writes:

>> <treasonftg@gmail.com> wrote in message

>>>for example RS("FileName") might equal C:\test\temp.txt

> I think you can take that as a typo. The problem is that when \t is
> parsed it is treated as a single character and interpreted as a tab
> (ASCII 9) and not a backslash (ASCII 92) followed by a 't'.

But it shouldn't be parsed, if it comes from a database as a string
value. Only Javascript literals are parsed in this way.

While it is possible that the string is sent in a way that is
converted to a string value using "eval", and not correctly escaped
for the transfer, my guess is that it is not the case here.

/L

-- 
Lasse Reichstein Nielsen  -  lrn@hotpop.com
 DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
  'Faith without judgement merely degrades the spirit divine.'
Received on Tue Feb 7 21:22:12 2006