Skip to content

Instantly share code, notes, and snippets.

@nipotan
Created April 21, 2010 02:53
Show Gist options
  • Save nipotan/373357 to your computer and use it in GitHub Desktop.
Save nipotan/373357 to your computer and use it in GitHub Desktop.
--- Mech.pm 2009-07-28 21:07:16.000000000 +0900
+++ Mech.pm 2010-04-21 11:49:12.000000000 +0900
@@ -75,7 +75,7 @@
$self->{mech}->get($uri);
# adapted from Plagger::Plugin::CustomFeed::Mixi
- if ( $self->content =~ /action="\/?login\.pl"/ ) {
+ if ( $self->content =~ /action="\/?login\.pl/ ) {
# shouldn't be path but path_query, obviously
$self->{login}->{next_url} = $uri->path_query;
$self->login;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment