Allow scheme-relative URIs in urlish?
* tekuti/util.scm (urlish?): Allow scheme-relative URIs.
This commit is contained in:
parent
c087e7b6fa
commit
c631aaf35c
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;; Tekuti
|
||||
;; Copyright (C) 2008, 2010, 2011, 2012 Andy Wingo <wingo at pobox dot com>
|
||||
;; Copyright (C) 2008, 2010, 2011, 2012, 2014 Andy Wingo <wingo at pobox dot com>
|
||||
|
||||
;; This program is free software; you can redistribute it and/or
|
||||
;; modify it under the terms of the GNU General Public License as
|
||||
|
@ -62,7 +62,7 @@
|
|||
(define (urlish? x)
|
||||
(let ((uri (string->uri x)))
|
||||
(and uri
|
||||
(memq (uri-scheme uri) '(http https))
|
||||
(memq (uri-scheme uri) '(#f http https))
|
||||
(uri-host uri)
|
||||
#t)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue