Variable Validation

Want a new feature, we want to know about it. Any and all suggestions are welcomed.
Post Reply
soupcan
Posts: 32
Joined: Tue Sep 08, 2015 4:57 pm

Variable Validation

Post by soupcan » Sun Jan 05, 2020 3:45 pm

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!

Masher
Site Admin
Posts: 3456
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Hearland
Contact:

Re: Variable Validation

Post by Masher » Sun Jan 05, 2020 5:30 pm

Thats a great idea, will look into adding that.
Masher
-----------
Please do not PM me unless asked to! We are a small company and if you have an issue or question it would be best to post it in the forums where it can help others in the future.

Need an affordable web control panel? Try UGCC.

Post Reply