Changeset 0f20f5cc5ae68f70e2abed2eed3c911b7ee3110d

Show
Ignore:
Timestamp:
10/15/10 16:32:45 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1287160365 +0000
git-parent:

[20dbdd26603c7f1d584b3e554d7f70c19d45734b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1287160365 +0000
Message:

Wow... nice off-by-one Theo. fixes #321

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_http.c

    r20dbdd2 r0f20f5c  
    6161    if(*c == '%') { 
    6262      int i, ord = 0; 
    63       for(i = 0; i < 2; i++) { 
     63      for(i = 1; i < 3; i++) { 
    6464        if(c[i] >= '0' && c[i] <= '9') ord = (ord << 4) | (c[i] - '0'); 
    6565        else if (c[i] >= 'a' && c[i] <= 'f') ord = (ord << 4) | (c[i] - 'a'); 
     
    6767        else break; 
    6868      } 
    69       if(i==2) { 
     69      if(i==3) { 
    7070        *((unsigned char *)o++) = ord; 
    7171        c+=3;