[livejournal] r17179: LJSUP-5987

Committer: gprochaev
LJSUP-5987

U   trunk/cgi-bin/Apache/WURFL.pm
Modified: trunk/cgi-bin/Apache/WURFL.pm
===================================================================
--- trunk/cgi-bin/Apache/WURFL.pm	2010-08-23 06:55:57 UTC (rev 17178)
+++ trunk/cgi-bin/Apache/WURFL.pm	2010-08-23 07:32:20 UTC (rev 17179)
@@ -96,9 +96,10 @@
                     return "$mobile_domain/read/user/$1/tag/$2";
                 }
 
-                $uri =~ /^\/(\w+)\/(\d+\.html)?$/;
-                # $username = $1; $post_id = int($2); $post_id = 0 if there is not '/NNNNN.html'
-                return $self->_process_url_args($1, $args, int($2));
+                if ($uri =~ /^\/(\w+)\/(\d+\.html)?$/) {
+                    # $username = $1; $post_id = int($2); $post_id = 0 if there is not '/NNNNN.html'
+                    return $self->_process_url_args($1, $args, int($2));
+                }
 
             } elsif (!$func) { # it's username.livejournal.com and we has var $username.