]> gitweb.factorcode.org Git - factor.git/commitdiff
farkup: invalid absolute urls don't need nofollow
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 10 Jan 2022 03:56:28 +0000 (19:56 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 10 Jan 2022 03:56:28 +0000 (19:56 -0800)
basis/farkup/farkup.factor

index ca39af7d6af37709954e23a8b4cb0e528cd621ff..4a2f176a3a11666806bbebb2ca4d2eed1d77cc61 100644 (file)
@@ -212,7 +212,7 @@ CONSTANT: invalid-url "javascript:alert('Invalid URL in farkup');"
         { [ dup empty? ] [ drop invalid-url f ] }
         { [ dup [ 127 > ] any? ] [ drop invalid-url f ] }
         { [ dup first "/\\" member? ] [ drop invalid-url f ] }
-        { [ CHAR: : over member? ] [ dup absolute-url? [ drop invalid-url ] unless t ] }
+        { [ CHAR: : over member? ] [ dup absolute-url? [ drop invalid-url f ] [ t ] if ] }
         [ relative-link-prefix get prepend "" like url-encode f ]
     } cond ;