Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r15107: Bugfixing: misspelled method name and po...

Committer: gariev
Bugfixing: misspelled method name and possible infinite loop

U   trunk/cgi-bin/LJ/User.pm
U   trunk/cgi-bin/talklib.pl
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2009-04-07 10:56:17 UTC (rev 15106)
+++ trunk/cgi-bin/LJ/User.pm	2009-04-08 02:33:45 UTC (rev 15107)
@@ -2997,8 +2997,8 @@
         my $host = $uri->host;
         while ($host =~ /\./) {
             return 1 if $LJ::TRUSTED_OPENID_PROVIDERS{$host};
-            # remove first domain name
-            $host =~ s/^\w+\.//;
+            # remove first domain name (or whatever) with dot
+            $host =~ s/^.*?\.//;
         }
     }
     return;

Modified: trunk/cgi-bin/talklib.pl
===================================================================
--- trunk/cgi-bin/talklib.pl	2009-04-07 10:56:17 UTC (rev 15106)
+++ trunk/cgi-bin/talklib.pl	2009-04-08 02:33:45 UTC (rev 15107)
@@ -1455,7 +1455,7 @@
 
         if (LJ::OpenID->consumer_enabled) {
             # OpenID user can comment if the account has validated e-mail address or OpenID provider is trusted
-            if (defined $oid_identity && $remote->is_trusted_indentity) {
+            if (defined $oid_identity && $remote->is_trusted_identity) {
                 my $logged_in = LJ::ehtml($remote->display_name);
                 $ret .= "<tr valign='middle' id='oidli' name='oidli'>";
                 if (LJ::is_banned($remote, $journalu)) {

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments