summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-14 00:32:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-14 00:32:46 +0000
commit50ff254c689683a3a3c6e0492b830bfb8a121aa1 (patch)
treef1796bf9269a0e8e9f7d5885ebb8d34baf5ba3cf /usr
parent9d23d1feb4ed09dee1e7e7ccce2d7a2ad168a517 (diff)
downloadpfsense-50ff254c689683a3a3c6e0492b830bfb8a121aa1.zip
pfsense-50ff254c689683a3a3c6e0492b830bfb8a121aa1.tar.gz
Automatically zap spaces, they can be harmful.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/vpn_openvpn_certs_create.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_certs_create.php b/usr/local/www/vpn_openvpn_certs_create.php
index f6d97ae..1763652 100644
--- a/usr/local/www/vpn_openvpn_certs_create.php
+++ b/usr/local/www/vpn_openvpn_certs_create.php
@@ -63,7 +63,7 @@ if ($_GET['ca']) {
}
if ($_POST) {
- $descr = $_POST['descr'];
+ $descr = str_replace($_POST['descr'], " ", ""); // spaces can be deadly
$cakeysize = $_POST['cakeysize'];
$caexpire = $_POST['caexpire'];
$cakeyexpire = $_POST['cakeyexpire'];
OpenPOWER on IntegriCloud