prevents crashes if NULL is entered as a referrer in the database. Does not guard against submitting NULL to the database.
pull/650/head
Andreas Fuchs 2021-05-06 10:04:37 +02:00
parent 5ecaf5587b
commit bd8f72daab
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ export const refFilter = (data, { domain, domainOnly, raw }) => {
const links = {};
const isValidRef = ref => {
return ref !== '' && !ref.startsWith('/') && !ref.startsWith('#');
return ref !== '' && ref !== null && !ref.startsWith('/') && !ref.startsWith('#');
};
if (raw) {