Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a989f6cd
Commit
a989f6cd
authored
Nov 26, 2007
by
Gábor Hojtsy
Browse files
#193891
by mvc: fix NOTICE in database.mysqli.inc because of possibly missing port number
parent
a069d064
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/database.mysqli.inc
View file @
a989f6cd
...
@@ -78,6 +78,9 @@ function db_connect($url) {
...
@@ -78,6 +78,9 @@ function db_connect($url) {
}
}
$url
[
'host'
]
=
urldecode
(
$url
[
'host'
]);
$url
[
'host'
]
=
urldecode
(
$url
[
'host'
]);
$url
[
'path'
]
=
urldecode
(
$url
[
'path'
]);
$url
[
'path'
]
=
urldecode
(
$url
[
'path'
]);
if
(
!
isset
(
$url
[
'port'
]))
{
$url
[
'port'
]
=
NULL
;
}
$connection
=
mysqli_init
();
$connection
=
mysqli_init
();
@
mysqli_real_connect
(
$connection
,
$url
[
'host'
],
$url
[
'user'
],
$url
[
'pass'
],
substr
(
$url
[
'path'
],
1
),
$url
[
'port'
],
NULL
,
MYSQLI_CLIENT_FOUND_ROWS
);
@
mysqli_real_connect
(
$connection
,
$url
[
'host'
],
$url
[
'user'
],
$url
[
'pass'
],
substr
(
$url
[
'path'
],
1
),
$url
[
'port'
],
NULL
,
MYSQLI_CLIENT_FOUND_ROWS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment