* ange-ftp.el: Tighten the regular expression used in
authorJim Blandy <jimb@redhat.com>
Tue, 3 Nov 1992 02:00:50 +0000 (02:00 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 3 Nov 1992 02:00:50 +0000 (02:00 +0000)
file-name-handler-alist to recognized ange-ftp filenames; the
slash, username and hostname must be at the start of the filename,
not just anywhere in the filename.

lisp/ange-ftp.el

index 6e771fa..e83ce90 100644 (file)
@@ -857,7 +857,7 @@ SIZE, if supplied, should be a prime number."
 ;;;; Internal variables.
 ;;;; ------------------------------------------------------------
 
-(defconst ange-ftp-version "$Revision: 1.9 $")
+(defconst ange-ftp-version "$Revision: 1.10 $")
 
 (defvar ange-ftp-data-buffer-name " *ftp data*"
   "Buffer name to hold directory listing data received from ftp process.")
@@ -3732,9 +3732,9 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
        (apply operation args)))))
 
 ;;;###autoload
-(or (assoc "/[^/:]+:" file-name-handler-alist)
+(or (assoc "^/[^/:]+:" file-name-handler-alist)
     (setq file-name-handler-alist
-         (cons '("/[^/:]+:" . ange-ftp-hook-function)
+         (cons '("^/[^/:]+:" . ange-ftp-hook-function)
                file-name-handler-alist)))
 
 ;;; The above two forms are sufficient to cause this file to be loaded