Fossil SCM
Also allow the '-' character in parameter and cookie names. This is necessary for the login cookie.
Commit
21780aef9a48339c4db33634885cacab14721036fd3ba3a0f237dc5d2a521d14
Parent
032188a698d9373…
1 file changed
+1
-1
+1
-1
| --- src/blob.c | ||
| +++ src/blob.c | ||
| @@ -119,11 +119,11 @@ | ||
| 119 | 119 | |
| 120 | 120 | /* Return true if and only if the entire string consists of only |
| 121 | 121 | ** alphanumeric characters. |
| 122 | 122 | */ |
| 123 | 123 | int fossil_no_strange_characters(const char *z){ |
| 124 | - while( z && (fossil_isalnum(z[0]) || z[0]=='_') ) z++; | |
| 124 | + while( z && (fossil_isalnum(z[0]) || z[0]=='_' || z[0]=='-') ) z++; | |
| 125 | 125 | return z[0]==0; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | |
| 129 | 129 | /* |
| 130 | 130 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -119,11 +119,11 @@ | |
| 119 | |
| 120 | /* Return true if and only if the entire string consists of only |
| 121 | ** alphanumeric characters. |
| 122 | */ |
| 123 | int fossil_no_strange_characters(const char *z){ |
| 124 | while( z && (fossil_isalnum(z[0]) || z[0]=='_') ) z++; |
| 125 | return z[0]==0; |
| 126 | } |
| 127 | |
| 128 | |
| 129 | /* |
| 130 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -119,11 +119,11 @@ | |
| 119 | |
| 120 | /* Return true if and only if the entire string consists of only |
| 121 | ** alphanumeric characters. |
| 122 | */ |
| 123 | int fossil_no_strange_characters(const char *z){ |
| 124 | while( z && (fossil_isalnum(z[0]) || z[0]=='_' || z[0]=='-') ) z++; |
| 125 | return z[0]==0; |
| 126 | } |
| 127 | |
| 128 | |
| 129 | /* |
| 130 |