Permalink
Browse files

Swapped stripslashes for str_replace because I'm not sure if every se…

…rver configuration will require stripslashes.
  • Loading branch information...
1 parent 7e69d44 commit ff4b58c138c5c06ef6e2dc52155f8f6c9620bee3 @mvied committed Feb 17, 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[stripslashes($_POST['http_domain'][$i])] = stripslashes($_POST['https_domain'][$i]);
+ $ssl_host_mapping[str_replace('\\\\', '\\', $_POST['http_domain'][$i])] = str_replace('\\\\', '\\', $_POST['https_domain'][$i]);
}
}
$this->getPlugin()->setSetting('ssl_host_mapping', $ssl_host_mapping);

0 comments on commit ff4b58c

Please sign in to comment.