diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-03-07 10:05:52 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-03-07 10:05:52 -0300 |
commit | 4655b2cdd07b59c6ee32be45f8cfcfb18aba9914 (patch) | |
tree | a3c78a584b05268502bf60a620221a90011e17a4 | |
parent | 3f9586b659aacfef34b73a5aa05c882d40314d69 (diff) | |
download | pfsense-4655b2cdd07b59c6ee32be45f8cfcfb18aba9914.zip pfsense-4655b2cdd07b59c6ee32be45f8cfcfb18aba9914.tar.gz |
Remove unecessary quotes
-rw-r--r-- | usr/local/www/system_certmanager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index 0dc3f6c..af23a6a 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -294,12 +294,12 @@ if ($_POST) { /* Make sure we do not have invalid characters in the fields for the certificate */ for ($i = 0; $i < count($reqdfields); $i++) { if (preg_match('/email/', $reqdfields[$i])){ /* dn_email or csr_dn_name */ - if (preg_match("/[\!\#\$\%\^\(\)\~\?\>\<\&\/\\\,\"\']/", $_POST["$reqdfields[$i]"])) + if (preg_match("/[\!\#\$\%\^\(\)\~\?\>\<\&\/\\\,\"\']/", $_POST[$reqdfields[$i]])) array_push($input_errors, "The field 'Distinguished name Email Address' contains invalid characters."); }else if (preg_match('/commonname/', $reqdfields[$i])){ /* dn_commonname or csr_dn_commonname */ - if (preg_match("/[\!\@\#\$\%\^\(\)\~\?\>\<\&\/\\\,\"\']/", $_POST["$reqdfields[$i]"])) + if (preg_match("/[\!\@\#\$\%\^\(\)\~\?\>\<\&\/\\\,\"\']/", $_POST[$reqdfields[$i]])) array_push($input_errors, "The field 'Distinguished name Common Name' contains invalid characters."); - }else if (($reqdfields[$i] != "descr") && preg_match("/[\!\@\#\$\%\^\(\)\~\?\>\<\&\/\\\,\.\"\']/", $_POST["$reqdfields[$i]"])) + }else if (($reqdfields[$i] != "descr") && preg_match("/[\!\@\#\$\%\^\(\)\~\?\>\<\&\/\\\,\.\"\']/", $_POST[$reqdfields[$i]])) array_push($input_errors, "The field '" . $reqdfieldsn[$i] . "' contains invalid characters."); } |