Skip to content

Commit 73284fc

Browse files
committed
Error handling
1 parent 6fe666c commit 73284fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/dev/js/editor/utils/helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ module.exports = {
706706
},
707707

708708
sanitizeUrl( url ) {
709-
const isValidUrl = isValidAttribute( 'a', 'href', url );
709+
const isValidUrl = !! url ? isValidAttribute( 'a', 'href', url ) : false;
710710

711711
return isValidUrl ? url : '';
712712
},

0 commit comments

Comments
 (0)