]> granicus.if.org Git - transmission/commitdiff
fix shttpd issue reported by Gimp_
authorCharles Kerr <charles@transmissionbt.com>
Fri, 15 Aug 2008 19:45:46 +0000 (19:45 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Fri, 15 Aug 2008 19:45:46 +0000 (19:45 +0000)
libtransmission/rpc-server.c

index b744958b3c48292c16be09c302b6abe8a6d5d135..b740d2808d674b5e586e206aea975f39bafe7c2b 100644 (file)
@@ -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" );