Skip to content

Commit 45b4587

Browse files
authored
Merge pull request #699 from emacs-php/fix/php-run-builtin-web-server
Fix php-run-builtin-web-server to expand root path
2 parents ca6ae67 + 89faad8 commit 45b4587

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: 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)