awhttpd urldecode funktion nicht standardkonform?



  • hab mir gerade mal die implementation angeschaut. das problem ist, dass %00 eigentlich 0 werden müsste, aber im code steht:

    if (v) { /* do not decode %00 to null char */
      *w=(char)v;
      p=&s[1];
    }
    

    das ist doch eigentlich ein fehler oder täusch ich mich 😕

    @edit: okay, grad mal bei lighttpd vorbeigeschaut, ganz anderer aber imho ebenso falscher problemlösungsansatz 🙄

    /* map control-characters out */
     if (high < 32 || high == 127) high = '_';
    


  • RFC lesen


Log in to reply