Permalink
Browse files

Fixed bug in Parser. Again.

  • Loading branch information...
1 parent aed71b4 commit 980d7e465763072e882dfe8c1633ef2d18faae85 @mvied committed Feb 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/WordPressHTTPS/Module/Parser.php
@@ -307,7 +307,7 @@ public function fixLinksAndForms() {
$post_id = null;
$blog_id = null;
$force_ssl = null;
- $url_path = '';
+ $url_path = '/';
if ( !$this->getPlugin()->isUrlLocal($url) ) {
continue;
@@ -351,7 +351,7 @@ public function fixLinksAndForms() {
if ( sizeof($url_path_segments) > 1 ) {
foreach( $url_path_segments as $url_path_segment ) {
if ( is_null($blog_id) && $url_path_segment != '' ) {
- $url_path .= '/' . $url_path_segment . '/';
+ $url_path .= $url_path_segment . '/';
if ( $blog_id = get_blog_id_from_url( $url_parts['host'], $url_path) ) {
break;
}

0 comments on commit 980d7e4

Please sign in to comment.