Merge branch 'master' of woozle.org:~neale/projects/ctf

This commit is contained in:
Aaron J. McPhall 2012-05-30 18:28:38 -06:00
commit c1fa983fc7
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ main(int argc, char *argv[])
if (p) p += 1; if (p) p += 1;
/* Now we can check to see if it's valid */ /* Now we can check to see if it's valid */
if (! anchored_search(package_path("%s/tokens.txt", category), token, 0)) { if ((! anchored_search(package_path("%s/tokens.txt", category), token, 0)) &&
(! anchored_search(state_path("tokens.db"), token, 0))) {
cgi_result(409, "No such token", "<p>This token has not been issued.</p>"); cgi_result(409, "No such token", "<p>This token has not been issued.</p>");
} }