SAP / macOS-enterprise-privileges

For Mac users in enterprise environments, this application gives users control over the administration of their machine by elevating their level of access to administrator privileges on macOS. Users can set a timeframe in the application's settings to perform specific tasks, such as installing or removing an application.
Apache License 2.0
1.34k stars 151 forks source link

[Privileges 2] Able to meet character requirement with spaces #118

Open aduffner opened 2 hours ago

aduffner commented 2 hours ago

Tested on:

Same config applied as provided here:

114

mthielemann commented 2 hours ago

@aduffner Technically a space is a character. I could add a check to make sure that subsequent spaces are counted as only one character. Would this help?

aduffner commented 51 minutes ago

@mthielemann Yes, or perhaps any character that exceeds a sequence of three? I’m not entirely sure, but if I need to enforce the user to deliver a reason, I want it to be valid. As you correctly identified, this would just be an enhancement, but we should also assume the user isn’t deliberately trying to exploit the app ...