Skip to content

Commit 89faad8

Browse files
committed
Fix php-run-builtin-web-server to expand root path
1 parent ca6ae67 commit 89faad8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/php.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ When `DOCUMENT-ROOT' is NIL, the document root is obtained from `ROUTER-OR-DIR'.
585585
(read-number "Port: " php-default-builtin-web-server-port)
586586
(if (file-directory-p d-o-r)
587587
nil
588-
(let ((root-input (read-file-name "Document root: " (directory-file-name d-o-r))))
588+
(let ((root-input (expand-file-name
589+
(read-file-name "Document root: " (directory-file-name d-o-r)))))
589590
(file-name-directory
590591
(if (file-directory-p root-input)
591592
root-input

0 commit comments

Comments
 (0)