Giter Site home page Giter Site logo

Comments (2)

troglobit avatar troglobit commented on May 25, 2024

Thank you for the bug report! 😃

I think I've found the fix in thttpgpd mentioned on the mailing list,
https://github.com/mmuman/thttpgpd/blob/master/src/libhttpd.c#L3725

Simplified:

/* If it is not a regular file or a dir, forbid acces.  */
else if (!S_ISREG(hc->sb.st_mode) ) {
	httpd_send_err(hc, 403, err403title, "", ERROR_FORM(err403form,
                "The requested URL '%.80s' does not resolve to a regular file or a directory"),
		hc->encodedurl );
	return -1;
}

However, I'm considering a 404 instead of 403. Feels like a bit too "blabby" by the web server to leak the above meta data?

from merecat.

troglobit avatar troglobit commented on May 25, 2024

Should be fixed in ffd8fe6. Feel free to re-open the issue should the problem persist!

Thank you again for reporting the bug, not only does it help Open Source in general, it reminded me I need to finialize the work I've done but not yet officially released (HTTPS support etc.)! 😃

from merecat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.