[BACK]Return to bozohttpd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / libexec / httpd

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/libexec/httpd/bozohttpd.c between version 1.5.2.1 and 1.6

version 1.5.2.1, 2008/03/24 07:14:46 version 1.6, 2008/03/03 22:15:08
Line 1450  fix_url_percent(http_req *request)
Line 1450  fix_url_percent(http_req *request)
                 buf[2] = '\0';                  buf[2] = '\0';
                 s++;                  s++;
                 *t = (char)strtol(buf, NULL, 16);                  *t = (char)strtol(buf, NULL, 16);
                 debug((DEBUG_EXPLODING, "fu_%%: strtol put '%c' into *t", *t));                  debug((DEBUG_EXPLODING, "fu_%%: strtol put %c into *t", *t));
                 if (*t++ == '\0')                  if (*t++ == '\0')
                         http_error(400, request, "percent hack got a 0 back");                          http_error(400, request, "percent hack got a 0 back");
   
                 while (*s && *s != '%') {                  while (*s && *s != '%') {
                         if (end && s >= end)                          if (s >= end)
                                 break;                                  break;
                         *t++ = *s++;                          *t++ = *s++;
                 }                  }

Legend:
Removed from v.1.5.2.1  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>