Skip to content

Commit

Permalink
Swapped stripslashes for str_replace because I'm not sure if every se…
Browse files Browse the repository at this point in the history
…rver configuration will require stripslashes.
  • Loading branch information
Mike Ems committed Feb 17, 2013
1 parent 7e69d44 commit ff4b58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WordPressHTTPS/Module/DomainMapping.php
Expand Up @@ -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);
Expand Down

0 comments on commit ff4b58c

Please sign in to comment.