Handle hostnames with upper-case letters
[webmin.git] / user_chooser.cgi
index 1dc5a1d..74046a6 100755 (executable)
@@ -7,6 +7,9 @@ use WebminCore;
 
 $trust_unknown_referers = 1;
 &init_config();
+if (&get_product_name() eq 'usermin') {
+       &switch_to_remote_user();
+       }
 &ReadParse(undef, undef, 2);
 %access = &get_module_acl();
 
@@ -35,10 +38,10 @@ if ($in{'multi'}) {
                print "</script>\n";
                print "<title>$text{'users_title1'}</title>\n";
                print "<frameset cols='50%,50%'>\n";
-               print "<frame src=\"/user_chooser.cgi?frame=1&multi=1\">\n";
+               print "<frame src=\"user_chooser.cgi?frame=1&multi=1\">\n";
                print "<frameset rows='*,50' frameborder=no>\n";
-               print " <frame src=\"/user_chooser.cgi?frame=2&multi=1\">\n";
-               print " <frame src=\"/user_chooser.cgi?frame=3&multi=1\" scrolling=no>\n";
+               print " <frame src=\"user_chooser.cgi?frame=2&multi=1\">\n";
+               print " <frame src=\"user_chooser.cgi?frame=3&multi=1\" scrolling=no>\n";
                print "</frameset>\n";
                print "</frameset>\n";
                }