Commit 1e4039cb authored by Leigh Stoller's avatar Leigh Stoller

Minor change for encrypted certs.

parent 2e3f0abc
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# Copyright (c) 2000-2008 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -36,7 +36,8 @@ if (!$isadmin && !$target_user->SameUser($this_user)) {
}
$query_result =& $target_user->TableLookUp("user_sslcerts",
"cert,privkey", "encrypted=1");
"cert,privkey",
"encrypted=1 and status='valid'");
if (!mysql_num_rows($query_result)) {
PAGEHEADER("Download SSL Certificate for $target_uid");
......
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