Commit cabd612d authored by Leigh B Stoller's avatar Leigh B Stoller

Add named PAGEARG_IMAGE.

parent 0cc19592
<?php
#
# Copyright (c) 2006-2012 University of Utah and the Flux Group.
# Copyright (c) 2006-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -565,6 +565,14 @@ function VerifyPageArguments($argspec, $required)
$object = Image::Lookup($imageid);
}
}
elseif (isset($_REQUEST[$name]) && $_REQUEST[$name] != "") {
$imageid = $_REQUEST[$name];
$yep = 1;
if (ValidateArgument(PAGEARG_IMAGE, $imageid)) {
$object = Image::Lookup($imageid);
}
}
break;
case PAGEARG_OSINFO:
......
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