Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
a7ceadb1
Commit
a7ceadb1
authored
Apr 04, 2016
by
Wim Van de Meerssche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed usage of DBQuoteSpecial
parent
dc194889
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
protogeni/lib/GeniSlice.pm.in
protogeni/lib/GeniSlice.pm.in
+3
-3
No files found.
protogeni/lib/GeniSlice.pm.in
View file @
a7ceadb1
...
...
@@ -97,10 +97,10 @@ sub Lookup($$)
#
transform
the
name
for
direct
lookup
.
This
method
is
#
very
general
,
and
will
even
resolve
a
URN
to
a
(
deprecated
)
#
pre
-
URN
slice
.
my
$
safe_id
=
DBQuoteSpecial
($
id
);
my
$
safe_id
=
DBQuoteSpecial
(
"@PROTOGENI_DOMAIN@.
$id
"
);
$
query_result
=
DBQueryWarn
(
"select idx from geni_slices "
.
"where hrn=
'@PROTOGENI_DOMAIN@.
$safe_id
'
"
);
"where hrn=$safe_id"
);
}
else
{
#
Somebody
else
's slice. We'
ll
have
to
look
up
the
slice
#
by
its
certificate
,
which
will
work
only
for
post
-
URN
slices
.
...
...
@@ -108,7 +108,7 @@ sub Lookup($$)
$
query_result
=
DBQueryWarn
(
"SELECT geni_slices.idx FROM geni_slices, geni_certificates "
.
"WHERE geni_slices.uuid = geni_certificates.uuid AND "
.
"geni_certificates.urn=
'
$safe_token
'
;"
);
"geni_certificates.urn=$safe_token;"
);
}
return
undef
if
(
! $query_result || !$query_result->numrows);
...
...
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