Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5 owhttpd: Subdirectories - some bugs fixed.

open
nobody
None
5
2013-02-11
2004-06-16
Serg Oskin
No

Bugs fixed of mapping of subdirectories and changes of
files in them.

Submit button with "..../pages?pages%2Fpage.0=FFFF"
don't work, "..../pages?page.0=FFFF" is right.

Discussion

  • From quick reading of the patch, I don't understand, why the ShowDevice function needs to have the back array -- and copy the entire file into it. If it is done only to \0-terminate the string earlier in order to output the truncated string, the following should be used -- explicitly specify the string's length:

    if (pn->subdir!=NULL && pn->subdir->format==ft_subdir &&
      (s=strrchr(file,'/')) != NULL) {
        fprintf(a_sock->io, "<BR><A href='%.*s'>%.*s</A>",
          (int)(s-file)file, (int)(s-file)-1, file + 1);
    
     


Anonymous


Cancel   Add attachments