… | |
… | |
825 | void |
825 | void |
826 | httpd_send_err_blocked( httpd_conn* hc ) |
826 | httpd_send_err_blocked( httpd_conn* hc ) |
827 | { |
827 | { |
828 | char *protocol = hc->protocol; |
828 | char *protocol = hc->protocol; |
829 | |
829 | |
|
|
830 | #ifdef ERR_DIR |
|
|
831 | char filename[1000]; |
|
|
832 | #endif |
|
|
833 | |
830 | hc->protocol = "HTTP/1.0"; |
834 | hc->protocol = "HTTP/1.0"; |
|
|
835 | |
831 | #ifdef ERR_DIR |
836 | #ifdef ERR_DIR |
832 | |
|
|
833 | char filename[1000]; |
|
|
834 | |
|
|
835 | /* Try virtual host error page. */ |
837 | /* Try virtual host error page. */ |
836 | if ( hc->hs->vhost && hc->hostdir[0] != '\0' ) |
838 | if ( hc->hs->vhost && hc->hostdir[0] != '\0' ) |
837 | { |
839 | { |
838 | (void) my_snprintf( filename, sizeof(filename), |
840 | (void) my_snprintf( filename, sizeof(filename), |
839 | "%s/%s/err403blocked.html", hc->hostdir, ERR_DIR ); |
841 | "%s/%s/err403blocked.html", hc->hostdir, ERR_DIR ); |