Skip to content

Commit

Permalink
drush runserver with Drush >= 8.1.* and Drupal 7: doesn't decode URL …
Browse files Browse the repository at this point in the history
…paths the same as Apache or nginx would (#4553)

* runserver: Decode URL paths the same as Apache or nginx would

* Fix hash in make file that tests were failing on
  • Loading branch information
dsnopek committed Sep 24, 2020
1 parent 62ab341 commit ef2aa1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/runserver/d7-rs-router.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function runserver_env($key) {
}

// Populate the "q" query key with the path, skip the leading slash.
$_GET['q'] = $_REQUEST['q'] = substr($url['path'], 1);
$_GET['q'] = $_REQUEST['q'] = urldecode(substr($url['path'], 1));

// We set the base_url so that Drupal generates correct URLs for runserver
// (e.g. http://127.0.0.1:8888/...), but can still select and serve a specific
Expand Down
2 changes: 1 addition & 1 deletion tests/makefiles/lockfiles/git.lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ projects:
url: 'https://git.drupalcode.org/project/atom.git'
type: git
branch: 8.x-1.x
revision: eef5044d467380991080cc6e6060de3b99832c27
revision: c6b3f3fe1edd24641c56d080bb94ad71824d9b42

0 comments on commit ef2aa1b

Please sign in to comment.