Skip to content

Commit a3ba3fb

Browse files
Include "host" in @sessionToken output (#194)
1 parent 5a68ef8 commit a3ba3fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Directives/SessionToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ class SessionToken
1414
*/
1515
public function __invoke(): string
1616
{
17-
return '<input type="hidden" class="session-token" name="token" value="" />';
17+
return '<input type="hidden" class="session-token" name="token" value="" /><input type="hidden" name="host" value="'.str_replace('"', htmlentities('"'), e(request('host'))).'">';
1818
}
1919
}

0 commit comments

Comments
 (0)