Magnus Henoch | 18 Nov 13:04

[bug #21601] Wrong handling of relative links with only query part


Follow-up Comment #1, bug #21601 (project w3):

It seems that the bug resides in url-default-expander in Emacs' URL library:

*** Welcome to IELM ***  Type (describe-mode) for help.
ELISP> (defun test-url-expand ()
         (let ((relative (url-generic-parse-url "?foo"))
               (base (url-generic-parse-url "http://foo/bar/baz.html")))
           (url-default-expander relative base)
           relative))
test-url-expand
ELISP> (test-url-expand)
[cl-struct-url "http" nil nil "foo" 80 "/bar?foo" nil nil nil]

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21601>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/

Gmane