generated from smedev/Template-for-SMEServer-Contribs-Package
* Thu Sep 11 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.84-17.sme
- import from SME10 CVS and rename back to phpki
This commit is contained in:
@@ -16,13 +16,16 @@
|
||||
#
|
||||
include('./config.php');
|
||||
include(STORE_DIR.'/config/config.php');
|
||||
|
||||
$serial = escapeshellcmd(trim($_SERVER['QUERY_STRING']));
|
||||
$serial=trim($_SERVER['QUERY_STRING']);
|
||||
if ( ! is_numeric($serial) ) {
|
||||
# if it is not a numerical serial, then it is not revoked!
|
||||
print '0';
|
||||
exit;
|
||||
}
|
||||
$serial = escapeshellcmd($serial);
|
||||
#header("Content-type: application/x-netscape-revocation");
|
||||
|
||||
# old Reg Ex doesnt work, new should do the work
|
||||
#$regexp = "^R\t.*\t.*\t$serial\t.*\t.*$";
|
||||
$regexp = "^R.*$serial.*$";
|
||||
$regexp = "^R\t.*\t.*\t$serial\t.*\t.*$";
|
||||
$configIndex = $config['index'];
|
||||
|
||||
if (exec("egrep '$regexp' '$configIndex'")) {
|
||||
|
Reference in New Issue
Block a user