1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Made directory listings XML compliant

This commit is contained in:
Witold Filipczyk 2006-07-31 13:24:39 +02:00 committed by Witold Filipczyk
parent 7af9cf5ebc
commit 2e818771d0
3 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ list_directory(struct connection *conn, unsigned char *dirpath,
add_dir_entries(entries, dirpath, page); add_dir_entries(entries, dirpath, page);
if (!add_to_string(page, "</pre>\n<hr>\n</body>\n</html>\n")) { if (!add_to_string(page, "</pre>\n<hr/>\n</body>\n</html>\n")) {
done_string(page); done_string(page);
return S_OUT_OF_MEM; return S_OUT_OF_MEM;
} }

View File

@ -167,7 +167,7 @@ fsp_directory(FSP_SESSION *ses, struct uri *uri)
fsp_closedir(dir); fsp_closedir(dir);
} }
end: end:
puts("</pre><hr></body></html>"); puts("</pre><hr/></body></html>");
fsp_close_session(ses); fsp_close_session(ses);
exit(0); exit(0);
} }

View File

@ -1367,7 +1367,7 @@ out_of_mem:
add_fragment(conn->cached, conn->from, str, sizeof(str) - 1); \ add_fragment(conn->cached, conn->from, str, sizeof(str) - 1); \
conn->from += (sizeof(str) - 1); } conn->from += (sizeof(str) - 1); }
if (ftp->dir) ADD_CONST("</pre>\n<hr>\n</body>\n</html>"); if (ftp->dir) ADD_CONST("</pre>\n<hr/>\n</body>\n</html>");
close_socket(conn->data_socket); close_socket(conn->data_socket);