Permalink
Browse files

Fixed bug in Parser.

  • Loading branch information...
1 parent 87b9298 commit 52d4a47e8c78b7853f30a2f97919c1b52fc968ec @mvied committed Jul 9, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 lib/WordPressHTTPS/Module/Parser.php
  2. +2 −0 readme.txt
@@ -92,7 +92,7 @@ public function secureElement( $url, $type = '' ) {
// Add log entry if this change hasn't been logged
if ( $updated && $url != $updated ) {
$log = '[FIXED] Element: ' . ( $type != '' ? '<' . $type . '> ' : '' ) . $url . ' => ' . $updated;
- } else if ( $updated == false && $url->getScheme() == 'http' ) {
+ } else if ( $updated == false && strpos($url, 'http://') == 0 ) {
$log = '[WARNING] Unsecure Element: <' . $type . '> - ' . $url;
}
if ( isset($log) && ! in_array($log, $this->getPlugin()->getLogger()->getLog()) ) {
View
@@ -77,6 +77,8 @@ add_filter('force_ssl', 'store_force_ssl', 10, 3);`
* SSL Domain Mapping
== Changelog ==
+= 3.1.1 =
+* Bug Fix - Fixed bug in Parser.
= 3.1 =
* Memory optimization.
* Added secure URL filtering.

0 comments on commit 52d4a47

Please sign in to comment.