How to handle a LSAH in user entered filename on mobile?

Klaus major-k klaus at major-k.de
Tue May 29 13:42:29 EDT 2018


Hi Bob,

> Am 29.05.2018 um 19:14 schrieb Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
> 
> Not sure about Mobile,

but I need to know for mobile!

> but I was under the impression that Livecode handled path conversion internally if forward slashes were used. There are also path conversion functions. I usually check the platform, then do some basic checks for formatting and pop an error if invalid. I also filter for valid characters, and if the source string doesn't match the result, I pop an error. 

My customer and I decided to not allow a SLASH in filenames on mobile in the end.

> Bob S
> 
>> On May 20, 2018, at 09:25 , Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi friends,
>> 
>> the subject says it all :-)
>> 
>> User entered a filename with a SLASH -> ddd/uuu.whatever
>> How should this be handled on mobile iOS/Android?
>> 
>> Escape with a BACKSLASH? -> ddd\/uuu.whatever
>> Replace with what?
>> 
>> On the Mac this is obviously replaced with a colon -> ddd:uuu.whatever
>> At least this is the way it appears in -> the files("folder with that file")
>> 
>> Any hints appreciated, thank you!

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the Use-livecode mailing list