do not sanitize '*' character
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 30 Oct 2006 09:59:23 +0000 (09:59 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 30 Oct 2006 09:59:23 +0000 (09:59 -0000)
src/libstrongswan/utils/identification.c

index 917f20b..d09c992 100644 (file)
@@ -225,18 +225,19 @@ static chunk_t sanitize_chunk(chunk_t chunk)
        {
                switch (*pos)
                {
-                       case 'a' ... 'z':
-                       case 'A' ... 'Z':
-                       case '0' ... '9':
+                       case '\0':
                        case ' ':
+                       case '*':
                        case '-':
-                       case '_':
                        case '.':
-                       case '=':
-                       case ':':
                        case '/':
+                       case '0' ... '9':
+                       case ':':
+                       case '=':
                        case '@':
-                       case '\0':
+                       case 'A' ... 'Z':
+                       case '_':
+                       case 'a' ... 'z':
                                break;
                        default:
                                *pos = '?';