Skip to content

Commit

Permalink
Update CSRF pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbuckley committed Mar 11, 2024
1 parent 7e68a14 commit cfd6e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CalendarRenderer.php
Expand Up @@ -19,7 +19,7 @@ class CalendarRenderer {
const PROD_ID = '-//StarSquare//LETTERBOXD//%s//EN';
const USER_AGENT = 'letterboxd-ics/%s (https://bux.re/letterboxd-ics) PHP/%s';
const CSRF_TOKEN = '__csrf';
const CSRF_PATTERN = '/CSRF = "(?P<token>[^"]+)"/';
const CSRF_PATTERN = '/CSRF = ("|\')(?P<token>.+?)\1/';

protected $urls = array(
'home' => 'https://letterboxd.com/',
Expand Down

0 comments on commit cfd6e32

Please sign in to comment.