Skip to content
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

Fixes #3927: accept authorized net with space, remove them on user submit #315

Conversation

fanf
Copy link
Member

@fanf fanf commented Sep 16, 2013

No description provided.

if(net.trim.length != 0) {
if(!isValidNetwork(net)) {
val netWithoutSpaces = net.replaceAll("""\s""", "")
if(netWithoutSpaces != 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be netWithoutSpaces.length != 0 ?

@ncharles
Copy link
Member

Looks good to me, thanks !

ncharles added a commit that referenced this pull request Sep 18, 2013
…ust_strip_spaces

Fixes #3927: accept authorized net with space, remove them on user submit
@ncharles ncharles merged commit e0b9bc7 into Normation:branches/rudder/2.4 Sep 18, 2013
@fanf fanf deleted the bug_3927/authorized_network_filed_must_strip_spaces branch March 15, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants