Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r11018: LJSUP-9791 (Self promo console command i...

Committer: ailyin
LJSUP-9791 (Self promo console command improvements)
U   trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm	2011-09-19 09:55:32 UTC (rev 11017)
+++ trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm	2011-09-20 02:30:16 UTC (rev 11018)
@@ -81,7 +81,7 @@
         unless ( $object && $object->valid ) {
             return $self->error("No entry found at $object_orig");
         }
-    } elsif ( $object =~ /^[a-z\-_]+$/i ) {
+    } elsif ( $object =~ /^[a-z0-9\-_]+$/i ) {
         $object = LJ::load_user($object);
         unless ($object) {
             return $self->error("No such user $object_orig");

Tags: andy, ljcom, pm
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