function hosting_ssl_filter_key in Hostmaster (Aegir) 6
Filter disallowed characters from a ssl certificate key.
Only lowercase alphanumeric- and '.', '_' or '-' characters are allowed for ssl keys.
4 calls to hosting_ssl_filter_key()
- hook_hosting_site_options_alter in modules/
hosting/ site/ hosting_site.api.php - hosting_ssl_hosting_site_options_alter in modules/
hosting/ web_server/ ssl/ hosting_ssl.nodeapi.inc - hosting_ssl_nodeapi_site_presave in modules/
hosting/ web_server/ ssl/ hosting_ssl.nodeapi.inc - hosting_ssl_nodeapi_site_validate in modules/
hosting/ web_server/ ssl/ hosting_ssl.nodeapi.inc
File
- modules/
hosting/ web_server/ ssl/ hosting_ssl.nodeapi.inc, line 148
Code
function hosting_ssl_filter_key($key) {
return strtolower(preg_replace("/[^\\w\\.\\-]/", "", $key));
}