VirtualBox

Changeset 64193 in vbox


Ignore:
Timestamp:
Oct 11, 2016 12:18:32 AM (8 years ago)
Author:
vboxsync
Message:

Main/NATEngine: Oops, drop the part of r111111 that checked for
whitespace - it's perfectly fine to have whitespace in the rule name
and GUI actually names them "Rule N" by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/NATEngineImpl.cpp

    r64166 r64193  
    2222#include "GuestOSTypeImpl.h"
    2323
    24 #include <iprt/ctype.h>
    2524#include <iprt/string.h>
    2625#include <iprt/cpp/utils.h>
     
    271270        for (s = name.c_str(); (c = *s) != '\0'; ++s)
    272271        {
    273             if (RT_C_IS_SPACE(c))
    274                 return setError(E_INVALIDARG,
    275                                 tr("Whitespace in NAT rule name"));
    276 
    277272            if (c == ',') /* we use csv in several places e.g. GetRedirects or natpf<N> argument */
    278273                return setError(E_INVALIDARG,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette