Quick Update:
Upon stumbling over this exact same problem (page merely reloads after clicking “OK” with junk added to the end of the URL) while using Justin’s excellent import-haloscan script, but having no quick and dirty stripped down script like the one I linked to above for importing blogger posts, I wrote Justin and asked if he would be willing to similarly customize his script for my use.
Well, I believe he has found the appropriate solution for both scripts! He changed a very small part of the script so that it uses a different mechanism for determing whether the “OK” button has been clicked.
He doesn’t guarantee whether it’s the best solution or the most secure solution, but it certainly does work.
Apparently the problem lies in some kind of change in the core WP code between 1.5.1.2 and 1.5.2.
The change to make in the import-blogger script included with the wp1.5.2 download is to replace lines 3-17, which should look like this:
$wpvarstoreset = array('action');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
$wpvar = $wpvarstoreset[$i];
if (!isset($$wpvar)) {
if (empty($_POST["$wpvar"])) {
if (empty($_GET["$wpvar"])) {
$$wpvar = '';
} else {
$$wpvar = $_GET["$wpvar"];
}
} else {
$$wpvar = $_POST["$wpvar"];
}
}
}
with this line:
$action = $_REQUEST['action'];
I haven’t tried this change with the blogger script, but it should work. Of course, use it at your own risk.