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

Klaus major-k klaus at
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>:
> 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> 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!



Klaus Major
klaus at

More information about the use-livecode mailing list