[wp-trac] [WordPress Trac] #14566: Blogger importer/AuthToken issue
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 16 20:31:39 UTC 2010
#14566: Blogger importer/AuthToken issue
--------------------------+-------------------------------------------------
Reporter: katybeth | Owner: debbit55
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Import | Version: 3.0.1
Severity: normal | Keywords: blogger
--------------------------+-------------------------------------------------
Changes (by debbit55):
* owner: => debbit55
* status: new => reviewing
Comment:
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]/', '',
$_GET['token'] );
NEW: $token = preg_replace( '/[^%-_0-9a-zA-Z]/', '', $_GET['token']
);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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14566#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list