*** thttpd-2.22beta5cg2/libhttpd.c Wed May 1 02:10:48 2002 --- thttpd-2.22beta5cg2a/libhttpd.c Wed May 1 02:30:37 2002 *************** *** 2345,2357 **** #endif /* TILDE_MAP_2 */ else { ! syslog( ! LOG_NOTICE, "%.80s URL \"%.80s\" goes outside the web tree", ! httpd_ntoa( &hc->client_addr ), hc->encodedurl ); ! httpd_send_err( ! hc, 403, err403title, "", ! ERROR_FORM( err403form, "The requested URL '%.80s' resolves to a file outside the permitted web server directory tree.\n" ), ! hc->encodedurl ); return -1; } } --- 2345,2362 ---- #endif /* TILDE_MAP_2 */ else { ! if (hc->hs->no_symlink) { ! httpd_send_err( hc, 404, err404title, "", err404form, hc->encodedurl ); ! } ! else { ! syslog( ! LOG_NOTICE, "%.80s URL \"%.80s\" goes outside the web tree", ! httpd_ntoa( &hc->client_addr ), hc->encodedurl ); ! httpd_send_err( ! hc, 403, err403title, "", ! ERROR_FORM( err403form, "The requested URL '%.80s' resolves to a file outside the permitted web server directory tree.\n" ), ! hc->encodedurl ); ! } return -1; } }