Browse Source

Fixed Issue 60: Patch by trevi55

pecesama 16 years ago
parent
commit
13b89106cc
1 changed files with 4 additions and 3 deletions
  1. 4 3
      classes/comments.class.php

+ 4 - 3
classes/comments.class.php View File

28
 	}
28
 	}
29
 	
29
 	
30
 	function generateCookie($fieldsArray) {
30
 	function generateCookie($fieldsArray) {
31
-		setcookie("cookie_gel_user", $fieldsArray["username"], time() + 30000000, "/");
32
-		setcookie("cookie_gel_email", $fieldsArray["email"], time() + 30000000, "/");
33
-		setcookie("cookie_gel_web", $fieldsArray["web"], time() + 30000000, "/");
31
+		$path = dirname(dirname($_SERVER['SCRIPT_NAME']."../"));
32
+		setcookie("cookie_gel_user", $fieldsArray["username"], time() + 30000000, $path);
33
+		setcookie("cookie_gel_email", $fieldsArray["email"], time() + 30000000, $path);
34
+		setcookie("cookie_gel_web", $fieldsArray["web"], time() + 30000000, $path);
34
 	}
35
 	}
35
 	
36
 	
36
 	function isSpam($fieldsArray) {
37
 	function isSpam($fieldsArray) {