mirror of
https://github.com/transmission/transmission
synced 2025-02-21 21:57:01 +00:00
fix shttpd issue reported by Gimp_
This commit is contained in:
parent
ca6909db33
commit
7b8b26bcbb
1 changed files with 5 additions and 2 deletions
|
@ -243,9 +243,9 @@ handle_root( struct shttpd_arg * arg )
|
|||
"Content-Type: text/html" "\r\n"
|
||||
"\r\n"
|
||||
"<html><head>" "\r\n"
|
||||
" <meta http-equiv=\"Refresh\" content=\"2; url=/transmission/web\">" "\r\n"
|
||||
" <meta http-equiv=\"Refresh\" content=\"2; url=/transmission/web/\">" "\r\n"
|
||||
"</head><body>" "\r\n"
|
||||
" <p>redirecting to <a href=\"/transmission/web\">/transmission/web</a></p>" "\r\n"
|
||||
" <p>redirecting to <a href=\"/transmission/web\">/transmission/web/</a></p>" "\r\n"
|
||||
"</body></html>" "\r\n";
|
||||
const size_t n = strlen( redirect );
|
||||
memcpy( arg->out.buf, redirect, n );
|
||||
|
@ -370,6 +370,9 @@ startServer( tr_rpc_server * server )
|
|||
argv[argc++] = tr_strdup( "-auth_realm" );
|
||||
argv[argc++] = tr_strdup( MY_REALM );
|
||||
|
||||
argv[argc++] = tr_strdup( "-root" );
|
||||
argv[argc++] = tr_strdup( "/dev/null" );
|
||||
|
||||
if( server->acl )
|
||||
{
|
||||
argv[argc++] = tr_strdup( "-acl" );
|
||||
|
|
Loading…
Reference in a new issue