diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 97c224c..df936c9 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -868,8 +868,8 @@ protected function initializeRequestGlobals(Request $request) { // are in effect and the script path can be similarly dropped from URL // generation. For servers that don't provide $_SERVER['REQUEST_URI'], // we do not know the actual URI requested by the client, and - // request_uri() returns a URI with the script name, resulting in - // non-clean URLs unless + // $request->getPathInfo() returns a URI with the script name, + // resulting in non-clean URLs unless // there's other code that intervenes. if (strpos($request->getPathInfo() . '/', $base_path . $script_path) !== 0) { $script_path = ''; diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php index 060ea12..5d5452a 100644 --- a/core/lib/Drupal/Core/Form/FormBuilder.php +++ b/core/lib/Drupal/Core/Form/FormBuilder.php @@ -301,7 +301,7 @@ public function rebuildForm($form_id, FormStateInterface &$form_state, $old_form $form['#build_id'] = 'form-' . Crypt::randomBytesBase64(); } - // #action defaults to $reuqest->getRequestUri(), but in case of Ajax and + // #action defaults to $request->getRequestUri(), but in case of Ajax and // other partial rebuilds, the form is submitted to an alternate URL, and // the original #action needs to be retained. if (isset($old_form['#action']) && !empty($rebuild_info['copy']['#action'])) { diff --git a/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php index 4d788c6..ead5d25 100644 --- a/core/modules/dblog/src/Tests/DbLogTest.php +++ b/core/modules/dblog/src/Tests/DbLogTest.php @@ -147,7 +147,7 @@ private function generateLogEntries($count, $type = 'custom', $severity = RfcLog 'link' => NULL, 'user' => $this->adminUser, 'uid' => $this->adminUser->id(), - 'request_uri' => $base_root . \Drupal::request()->getRequestUri(), + 'request_uri' => '/example-uri', 'referer' => \Drupal::request()->server->get('HTTP_REFERER'), 'ip' => '127.0.0.1', 'timestamp' => REQUEST_TIME, @@ -456,7 +456,7 @@ protected function testDBLogAddAndClear() { 'link' => NULL, 'user' => $this->adminUser, 'uid' => $this->adminUser->id(), - 'request_uri' => $base_root . \Drupal::request()->getRequestUri(), + 'request_uri' => '/example-uri', 'referer' => \Drupal::request()->server->get('HTTP_REFERER'), 'ip' => '127.0.0.1', 'timestamp' => REQUEST_TIME,