瀏覽代碼

In some cases, validation was done multiple times for the same token

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 年之前
父節點
當前提交
bac9293fab
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Sources/Profile.php

+ 2 - 2
Sources/Profile.php

@@ -460,12 +460,12 @@ function ModifyProfile($post_errors = array())
 	unset($profile_areas);
 
 	// Now the context is setup have we got any security checks to carry out additional to that above?
-	if (isset($security_checks['validateToken']))
-		validateToken($token_name, $token_type);
 	if (isset($security_checks['session']))
 		checkSession($security_checks['session']);
 	if (isset($security_checks['validate']))
 		validateSession();
+	if (isset($security_checks['validateToken']))
+		validateToken($token_name, $token_type);
 	if (isset($security_checks['permission']))
 		isAllowedTo($security_checks['permission']);