[livejournal] r17673: LJSUP-7318: get rid of $&
Committer: vsukhanov
LJSUP-7318: get rid of $&U trunk/cgi-bin/LJ/Talk/Author/User.pm
Modified: trunk/cgi-bin/LJ/Talk/Author/User.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk/Author/User.pm 2010-11-11 11:26:16 UTC (rev 17672)
+++ trunk/cgi-bin/LJ/Talk/Author/User.pm 2010-11-12 08:16:51 UTC (rev 17673)
@@ -102,9 +102,9 @@
# parse inline login opts
my ($exptype, $ipfixed);
- if ($form->{'userpost'} =~ s/[!<]{1,2}$//) {
- $exptype = 'long' if index($&, "!") >= 0;
- $ipfixed = LJ::get_remote_ip() if index($&, "<") >= 0;
+ if ($form->{'userpost'} =~ s/([!<]{1,2})$//) {
+ $exptype = 'long' if index($1, "!") >= 0;
+ $ipfixed = LJ::get_remote_ip() if index($1, "<") >= 0;
}
$up = LJ::load_user($form->{'userpost'});
