Commit a7ceadb1 authored by Wim Van de Meerssche's avatar Wim Van de Meerssche

fixed usage of DBQuoteSpecial

parent dc194889
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment