liquid_feedback_frontend

changeset 873:5f681205dd44

Added agument check again for public access
author bsw
date Sat Aug 18 22:59:00 2012 +0200 (2012-08-18)
parents 176269e11991
children 2dfa6f5b7670
files fastpath/getpic.c
line diff
     1.1 --- a/fastpath/getpic.c	Sat Aug 18 22:52:22 2012 +0200
     1.2 +++ b/fastpath/getpic.c	Sat Aug 18 22:59:00 2012 +0200
     1.3 @@ -35,7 +35,12 @@
     1.4    PGresult *dbr;
     1.5  
     1.6    args_string = getenv("QUERY_STRING");
     1.7 -#ifndef PUBLIC_ACCESS
     1.8 +#ifdef PUBLIC_ACCESS
     1.9 +  if (!args_string) {
    1.10 +    fputs("Status: 403 Access Denied\n\n", stdout);
    1.11 +    return 0;
    1.12 +  }
    1.13 +#else
    1.14    cookies = getenv("HTTP_COOKIE");
    1.15    if (!args_string || !cookies) {
    1.16      fputs("Status: 403 Access Denied\n\n", stdout);

Impressum / About Us