]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/infrastructure/keygen/response.d0ir
Add CMakeLists.txt
[xonotic/xonotic.git] / misc / infrastructure / keygen / response.d0ir
index 3439f7f072523fb06ea629a857a3927d662f41d0..a74fb37a746fd92681c3f34c990eb0bf4cba4800 100755 (executable)
@@ -1,5 +1,14 @@
 #!/usr/bin/perl
 
+BEGIN
+{
+        $ENV{PATH} = "/usr/bin:/bin";
+}
+
+# if we are suid, set uid := euid
+$( = $);
+$< = $>;
+
 use strict;
 use CGI;
 use LWP::Simple;
@@ -125,7 +134,7 @@ sub check_banlist($)
 our %ca = ();
 our $default_ca = 0;
 
-do 'config.pl';
+do './config.pl';
 
 if((my $key = $cgi->param('key')))
 {
@@ -190,7 +199,7 @@ Content-type: text/html
        <form action="response.d0ir" method="post" enctype="multipart/form-data">
        To generate and sign a key IN GAME, follow these steps on the console:
        <ol>
-               <li>crypto_keygen $default_ca http://xonotic.org/ca/?ca=$default_ca&amp;key=</li>
+               <li>crypto_keygen $default_ca http://ca.xonotic.org/?ca=$default_ca&amp;key=</li>
        </ol>
        To generate and sign a key MANUALLY, follow these steps on a UNIX command line:
        <ol>