-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitespace in policy file name (Policy Editor) #8795
Whitespace in policy file name (Policy Editor) #8795
Comments
By design it only allows letters, numbers, plus sign, minus sign, dot and underline. I personally preferred if it forced letters and numbers for the 1st character (but that is another issue).
Having said that, you are right about the above point. It is relatively easy to fix. I will work on it. |
I'm not marmarek but I suggest to use the same method on both files to avoid having such discrepancies. The correct method I commented on your PR: |
Qubes OS release
R4.2
Brief summary
When using whitespaces in the policy editor as new policy file name, the Policy Editor won't save and prints an error message.
Steps to reproduce
Expected behavior
Policy file saved to disk.
Actual behavior
An error occured while trying to save the policy file: Internal error. See /var/log/qubes/policy-admin.log in dom0 for details.
Suggested Solution
Don't allow whitespaces when at step #2.
Not tested: And don't allow other characters as well that could potentially break (injection wise ; + ( ) ' " { } * # $() `` ... )
The text was updated successfully, but these errors were encountered: