Skip to content

Commit

Permalink
No longer forcing title attribute for links
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbiat committed Dec 24, 2021
1 parent 0818153 commit db43784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTTP20/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public function links(array $links = [], string $type = 'header', bool $strictRe
if (isset($link['title'])) {
$link['title'] = urldecode(htmlspecialchars($link['title']));
} else {
$link['title'] = urldecode(htmlspecialchars(basename($link['href'])));
$link['title'] = '';
}
#Validate title*, which is valid only for HTTP header
if (isset($link['title*']) && ($type !== 'header' || preg_match('/'.$langEncRegex.'.*/i', $link['title*']) !== 1)) {
Expand Down

0 comments on commit db43784

Please sign in to comment.