Allow https links to the library of congress subject headings
This commit is contained in:
@ -353,7 +353,10 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
||||
private static function validateLcshId(string $id):string|false {
|
||||
|
||||
if (filter_var($id, FILTER_VALIDATE_URL) !== false) {
|
||||
$id = strtr($id, ['http://id.loc.gov/authorities/names/' => '']);
|
||||
$id = strtr($id, [
|
||||
'http://id.loc.gov/authorities/names/' => '',
|
||||
'https://id.loc.gov/authorities/names/' => '',
|
||||
]);
|
||||
}
|
||||
|
||||
if (substr($id, 0, 2) !== 'sh') {
|
||||
|
Reference in New Issue
Block a user