Forráskód Böngészése

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

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 éve
szülő
commit
bac9293fab
1 módosított fájl, 2 hozzáadás és 2 törlés
  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']);