Differences From Artifact [227890c094]:
- File src/util.c — part of check-in [82e30c0000] at 2014-10-06 00:58:44 on branch trunk — Add an assert() to prove that Fossil server instances are not vulnerable to the ShellShock bug because it never shells-out while processing an HTTP request. (user: drh size: 8919) [more...]
To Artifact [9f02b01358]:
- File src/util.c — part of check-in [4bc5b6cf9b] at 2015-01-21 18:55:15 on branch ad-unit-enhancement — Enhance the ad-unit processing to allow for tall right-side column ads as an alternative to banner ads. (user: drh size: 9164) [more...]
| ︙ | |||
329 330 331 332 333 334 335 | 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | + + + + + + + + + + |
** only lower-case ASCII hexadecimal values.
*/
int fossil_is_uuid(const char *zSym){
return zSym
&& (UUID_SIZE==strlen(zSym))
&& validate16(zSym, UUID_SIZE);
}
/*
** Return true if the input string is NULL or all whitespace.
** Return false if the input string contains text.
*/
int fossil_all_whitespace(const char *z){
if( z==0 ) return 1;
while( fossil_isspace(z[0]) ){ z++; }
return z[0]==0;
}
|