Permalink
Browse files

Added stripslashes to domain mapping save.

  • Loading branch information...
1 parent b098dbc commit 87fb6afd53e20307fa3d75735baf071560519b33 @mvied committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WordPressHTTPS/Module/DomainMapping.php
@@ -105,7 +105,7 @@ public function save() {
$ssl_host_mapping = array();
for( $i=0; $i<sizeof($_POST['http_domain']); $i++ ) {
if ( isset($_POST['http_domain'][$i]) && $_POST['http_domain'][$i] != '' && isset($_POST['https_domain'][$i]) && $_POST['https_domain'][$i] != '' ) {
- $ssl_host_mapping[$_POST['http_domain'][$i]] = $_POST['https_domain'][$i];
+ $ssl_host_mapping[stripslashes($_POST['http_domain'][$i])] = stripslashes($_POST['https_domain'][$i]);
}
}
$this->getPlugin()->setSetting('ssl_host_mapping', $ssl_host_mapping);

0 comments on commit 87fb6af

Please sign in to comment.