fix shttpd issue reported by Gimp_
This commit is contained in:
parent
ca6909db33
commit
7b8b26bcbb
|
@ -243,9 +243,9 @@ handle_root( struct shttpd_arg * arg )
|
||||||
"Content-Type: text/html" "\r\n"
|
"Content-Type: text/html" "\r\n"
|
||||||
"\r\n"
|
"\r\n"
|
||||||
"<html><head>" "\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"
|
"</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";
|
"</body></html>" "\r\n";
|
||||||
const size_t n = strlen( redirect );
|
const size_t n = strlen( redirect );
|
||||||
memcpy( arg->out.buf, redirect, n );
|
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( "-auth_realm" );
|
||||||
argv[argc++] = tr_strdup( MY_REALM );
|
argv[argc++] = tr_strdup( MY_REALM );
|
||||||
|
|
||||||
|
argv[argc++] = tr_strdup( "-root" );
|
||||||
|
argv[argc++] = tr_strdup( "/dev/null" );
|
||||||
|
|
||||||
if( server->acl )
|
if( server->acl )
|
||||||
{
|
{
|
||||||
argv[argc++] = tr_strdup( "-acl" );
|
argv[argc++] = tr_strdup( "-acl" );
|
||||||
|
|
Loading…
Reference in New Issue