Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
fd956924
Commit
fd956924
authored
Jul 14, 2010
by
Leo Gordon
Browse files
allow zero-length passwords in the URL
parent
5afc601f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/Bio/EnsEMBL/Hive/URLFactory.pm
modules/Bio/EnsEMBL/Hive/URLFactory.pm
+1
-1
No files found.
modules/Bio/EnsEMBL/Hive/URLFactory.pm
View file @
fd956924
...
...
@@ -89,7 +89,7 @@ sub fetch {
Bio::EnsEMBL::Hive::
URLFactory
->
new
();
# make sure global instance is created
if
(
my
(
$conn
,
$user
,
$pass
,
$host
,
$port
,
$dbname
,
$table_name
,
$tparam_name
,
$tparam_value
,
$conn_param_string
)
=
$url
=~
m{^(mysql://(?:(\w+)(?:\:([^/\@]
+
))?\@)?(?:([\w\-\.]+)(?:\:(\d+))?)?/(\w*))(?:/(\w+)(?:\?(\w+)=(\w+))?)?((?:;(\w+)=(\w+))*)$}
)
{
$url
=~
m{^(mysql://(?:(\w+)(?:\:([^/\@]
*
))?\@)?(?:([\w\-\.]+)(?:\:(\d+))?)?/(\w*))(?:/(\w+)(?:\?(\w+)=(\w+))?)?((?:;(\w+)=(\w+))*)$}
)
{
my
%conn_param
=
split
(
/[;=]/
,
'
type=hive;discon=0
'
.
$conn_param_string
);
...
...
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