Skip to content

Commit 9748dce

Browse files
committed
minor #15918 Fix link to isCsrfTokenValid() for 5.3+ (xabbuh)
This PR was merged into the 5.3 branch. Discussion ---------- Fix link to isCsrfTokenValid() for 5.3+ effectively reverting #15738 on 5.3+ as the trait is not present there Commits ------- b4b78eb Fix link to isCsrfTokenValid() for 5.3+
2 parents 8b487eb + b4b78eb commit 9748dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/csrf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ generate a CSRF token in the template and store it as a hidden form field:
150150
</form>
151151

152152
Then, get the value of the CSRF token in the controller action and use the
153-
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerTrait::isCsrfTokenValid`
153+
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::isCsrfTokenValid`
154154
method to check its validity::
155155

156156
use Symfony\Component\HttpFoundation\Request;

0 commit comments

Comments
 (0)