Page 1 of 1

Variable Validation

Posted: Sun Jan 05, 2020 3:45 pm
by soupcan
Hi Masher,

This is somewhat of a "wishlist" item that I could live without, but I'd like to be able to use variables to give users a degree of control over certain options. UGCC of course has public variables, but that presents a challenge in that the user can set any option or even run another command as easily as '; echo your command here;.

Some ability to control what users can input to the variables could be helpful. IMO, the best way to do this from my perspective would be allowing UGCC administrators to define a regex per variable, that user input is validated against. For instance, if I knew a variable could only accept numeric values I would enter ^[0-9]*$, so if a user enters anything other than numbers they get an error.

Thanks!

Re: Variable Validation

Posted: Sun Jan 05, 2020 5:30 pm
by Masher
Thats a great idea, will look into adding that.