Skip to content

Commit

Permalink
Fix cookie path on IIS
Browse files Browse the repository at this point in the history
The path can contain backslashes on Windows, so let's replace them
before using it as cookie path which needs just forward slashes.

Fixes #12249

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed May 12, 2016
1 parent 6b8f56d commit 8396ee4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -8,6 +8,7 @@ phpMyAdmin - ChangeLog
- issue #12244 Avoid using too log URLs when getting javascripts
- issue #12118 Fixed setting mixed case languages
- issue #12229 Avoid storing objects in session when debugging SQL
- issue #12249 Fix cookie path on IIS

4.6.1 (2016-05-02)
- issue #12120 PMA_Util not found in insert_edit.lib.php
Expand Down
2 changes: 1 addition & 1 deletion libraries/Config.php
Expand Up @@ -1399,7 +1399,7 @@ public function getCookiePath()
$parsed_url = parse_url(PMA_getenv('REQUEST_URI'));
}

$cookie_path = $parsed_url['path'];
$cookie_path = str_replace('\\', '/', $parsed_url['path']);

/* Remove filename */
if (substr($cookie_path, -4) == '.php') {
Expand Down

0 comments on commit 8396ee4

Please sign in to comment.