How to handle a LSAH in user entered filename on mobile?
Bob Sneidar
bobsneidar at iotecdigital.com
Tue May 29 13:14:49 EDT 2018
Not sure about 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.
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
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list