Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#14566 closed defect (bug) (duplicate)

Blogger importer/AuthToken issue

Reported by: katybeth Owned by: debbit55
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: Import Keywords: blogger
Focuses: Cc:


Problems with the blogger importer giving a 403 Invalid AuthSub Token error when trying to authorize with Google. Seems to (possibly) be something related to Google/Blogger's authorization scheme. More details at the post noted below, though there are probably some other posts in the forums as well. Looks like it was an issue on wordpress.com, but has been fixed over there.


Change History (4)

#1 @debbit55
11 years ago

  • Owner set to debbit55
  • Status changed from new to reviewing

Found a cure for what ails wordpress 3.x and blogger importer...there are 2 lines that need a little help

1.) Line 99:OLD: $token = preg_replace( '/[-_0-9a-zA-Z]/', , $_GETtoken? );
NEW: $token = preg_replace( '/[
%-_0-9a-zA-Z]/', , $_GETtoken? );Note: % sign added in the regex portion.

2) Line 108:OLD: preg_match( '/token=([-_0-9a-z]+)/i', $response, $matches );
NEW: preg_match( '/token=([%-_0-9a-z]+)/i', $response, $matches );Note: % sign added in the regex portion.

I've tested this on my own blogs...it works like a charm

#2 @Otto42
11 years ago

Related: #14629

#3 @Otto42
11 years ago

  • Resolution set to duplicate
  • Status changed from reviewing to closed

Closing this in favor of #14629, as that has a patch and Brian looking at it.

#4 @nacin
10 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.