summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2014-06-19 13:26:31 +0200
committerFelix Dörre <felix@dogcraft.de>2014-06-19 13:26:31 +0200
commit2763b468d24bd48b9f7902a98949e80a92556d74 (patch)
tree3104decf853de214042662e7ff98769f67f34340
parent6d0f414854b2c1aa1da9ec49889ac9bb3b69b966 (diff)
downloadcacert-devel-2763b468d24bd48b9f7902a98949e80a92556d74.tar.gz
cacert-devel-2763b468d24bd48b9f7902a98949e80a92556d74.tar.xz
cacert-devel-2763b468d24bd48b9f7902a98949e80a92556d74.zip
bug-1212-related: remove "like" for matching domains
causing to be able to issue certificates for "%"
-rw-r--r--includes/general.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/general.php b/includes/general.php
index 854aab4..5cfe331 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -287,7 +287,7 @@
$dom = $bits[$i];
$_SESSION['_config']['row'] = "";
$dom = mysql_real_escape_string($dom);
- $query = "select * from domains where `memid`='".intval($_SESSION['profile']['id'])."' and `domain` like '$dom' and `deleted`=0 and `hash`=''";
+ $query = "select * from domains where `memid`='".intval($_SESSION['profile']['id'])."' and `domain` = '$dom' and `deleted`=0 and `hash`=''";
$res = mysql_query($query);
if(mysql_num_rows($res) > 0)
{
@@ -339,7 +339,7 @@
$dom = $bits[$i];
$_SESSION['_config']['altrow'] = "";
$dom = mysql_real_escape_string($dom);
- $query = "select * from domains where `memid`='".intval($_SESSION['profile']['id'])."' and `domain` like '$dom' and `deleted`=0 and `hash`=''";
+ $query = "select * from domains where `memid`='".intval($_SESSION['profile']['id'])."' and `domain` = '$dom' and `deleted`=0 and `hash`=''";
$res = mysql_query($query);
if(mysql_num_rows($res) > 0)
{