]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow spaces and CRs
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 Feb 2011 10:53:50 +0000 (11:53 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 Feb 2011 10:53:50 +0000 (11:53 +0100)
Now that the underlying redis escape function handles spaces and
control characters

src/modules/rlm_rediswho/rlm_rediswho.c

index 0755094506d9bc1377f2bd0ac3cd20e07358db3a..5059f9d8597f26ea80cb5379a26290942601b1f9 100644 (file)
@@ -133,7 +133,7 @@ static int rediswho_command(const char *fmt, REDISSOCK *dissocket,
                break;
        default:
                break;
-       };
+       }
 
        (data->redis_inst->redis_finish_query)(dissocket);
 
@@ -343,16 +343,6 @@ static int rediswho_accounting(void * instance, REQUEST * request)
                return RLM_MODULE_NOOP;
        }
 
-       if (strchr(request->username->vp_strvalue, ' ')) {
-               RDEBUG("Spaces are not allowed in the User-Name");
-               return RLM_MODULE_NOOP;
-       }
-
-       if (strchr(request->username->vp_strvalue, '\n')) {
-               RDEBUG("CR are not allowed in the User-Name");
-               return RLM_MODULE_NOOP;
-       }
-
        dissocket = data->redis_inst->redis_get_socket(data->redis_inst);
        if (dissocket == NULL) {
                RDEBUG("cannot allocate redis connection");