Skip to content

Commit 580cd4d

Browse files
authored
Update Auth.php
Resolve an error when CSP is enabled, the style attribute in the table cause an error in console.
1 parent 492365d commit 580cd4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Collectors/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function display(): string
8383

8484
$html = '<h3>Current User</h3>';
8585
$html .= '<table><tbody>';
86-
$html .= "<tr><td style='width:150px;'>User ID</td><td>#{$user->id}</td></tr>";
86+
$html .= "<tr><td width=\"150\">User ID</td><td>#{$user->id}</td></tr>";
8787
$html .= "<tr><td>Username</td><td>{$user->username}</td></tr>";
8888
$html .= "<tr><td>Email</td><td>{$user->email}</td></tr>";
8989
$html .= "<tr><td>Groups</td><td>{$groupsForUser}</td></tr>";

0 commit comments

Comments
 (0)