]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/sessionproxy.php
* Got login/logout working. Still need to redirect unloggedin sessions to
[citadel.git] / ctdlphp / sessionproxy.php
index 09e35503a683429702b43b0c6386ff668b1a8220..8d544270b7552a89cd2e3725e551a26567493729 100755 (executable)
@@ -78,6 +78,9 @@ if ($ret < 0) {
        exit(4);
 }
 
+// Set the permissions so someone else doesn't jump into our connection.
+chmod($sockname, 0600);
+
 // We need to get a connection to the Citadel server going now.
 
 $ctdlsock = fsockopen("uncensored.citadel.org", 504, $errno, $errstr, 30);