mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Merge pull request #651 from foxytocin/enhancement
Enhancement of issue #649: also checking agains NULL in urlFilter
This commit is contained in:
commit
a06901336c
@ -3,7 +3,7 @@ import { removeTrailingSlash, removeWWW, getDomainName } from './url';
|
|||||||
|
|
||||||
export const urlFilter = (data, { raw }) => {
|
export const urlFilter = (data, { raw }) => {
|
||||||
const isValidUrl = url => {
|
const isValidUrl = url => {
|
||||||
return url !== '' && !url.startsWith('#');
|
return url !== '' && url !== null && !url.startsWith('#');
|
||||||
};
|
};
|
||||||
|
|
||||||
if (raw) {
|
if (raw) {
|
||||||
|
Loading…
Reference in New Issue
Block a user