summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorMarkus Warg <mw@it-sls.de>2010-03-29 11:13:48 +0200
committerMarkus Warg <mw@it-sls.de>2010-03-29 11:13:48 +0200
commiteab6644f0f372e5334ae4921f0e84cebbdca025d (patch)
tree3dc8c347d9a3abdcb79c872c06aaffb420611ca6 /includes
parent2ac0d51db72c02c757fce57c309d63470ad3d337 (diff)
downloadcacert-eab6644f0f372e5334ae4921f0e84cebbdca025d.tar.gz
cacert-eab6644f0f372e5334ae4921f0e84cebbdca025d.tar.xz
cacert-eab6644f0f372e5334ae4921f0e84cebbdca025d.zip
patch from Phillip (Mantis #778)
https://bugs.cacert.org/view.php?id=778
Diffstat (limited to 'includes')
-rw-r--r--includes/general.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/general.php b/includes/general.php
index 80b16a0..938df4e 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -826,6 +826,10 @@
$newcsr = str_replace("\n\n","\n",$newcsr);
return(preg_replace("/[^A-Za-z0-9\n\r\-\:\=\+\/ ]/","",$newcsr));
}
+ function clean_gpgcsr($CSR)
+ {
+ return(preg_replace("/[^A-Za-z0-9\n\r\-\:\=\+\/ ]/","",trim($CSR)));
+ }
function sanitizeFilename($text)
{