mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Made directory listings XML compliant
This commit is contained in:
parent
7af9cf5ebc
commit
2e818771d0
@ -196,7 +196,7 @@ list_directory(struct connection *conn, unsigned char *dirpath,
|
||||
|
||||
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);
|
||||
return S_OUT_OF_MEM;
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ fsp_directory(FSP_SESSION *ses, struct uri *uri)
|
||||
fsp_closedir(dir);
|
||||
}
|
||||
end:
|
||||
puts("</pre><hr></body></html>");
|
||||
puts("</pre><hr/></body></html>");
|
||||
fsp_close_session(ses);
|
||||
exit(0);
|
||||
}
|
||||
|
@ -1367,7 +1367,7 @@ out_of_mem:
|
||||
add_fragment(conn->cached, conn->from, str, 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user