[Kimchi-devel] [PATCH] Fix directory path validation for 'DIR' type storage pool

Crístian Viana vianac at linux.vnet.ibm.com
Fri Feb 21 13:57:56 UTC 2014


I agree.

Am 21-02-2014 10:55, schrieb Aline Manera:
> +    if (!/(\/([0-9a-zA-Z-_\.]+))+\/?$/.test(path)) {
>
> This verification is restricting so much the user.
> I can have any valid path in my system.
>
> /aline manera/
> /crístian /
> /阿莲
>
> This verification should be done in backend. For UI, we should only 
> check if the string starts with /




More information about the Kimchi-devel mailing list