forked from shaba/openuds
fixing up pam_http
This commit is contained in:
parent
20ead2954b
commit
70141ae972
@ -65,9 +65,10 @@ static int getUrl(const char* url, char* buffer, size_t size ) {
|
||||
|
||||
int isValid(const char* str)
|
||||
{
|
||||
const int len = strnlen(str, 256);
|
||||
for( int i = 0; i < len; i++ ) {
|
||||
if ( !isalnum(str[i] && str[i] != '-') ) {
|
||||
const int len = strnlen(str, DATASIZE);
|
||||
int i;
|
||||
for( i = 0; i < len; i++ ) {
|
||||
if ( !isalnum(str[i]) && str[i] != '-' ) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user