slartyblartfast (slartyblartfast) wrote in changelog,
slartyblartfast
slartyblartfast
changelog

[livejournal] r17155: LJSUP-5987: Redirection to mobile versio...

Committer: mchernyshev
LJSUP-5987: Redirection to mobile version
- bugfix: tags can contains any characters.
U   trunk/cgi-bin/Apache/WURFL.pm
Modified: trunk/cgi-bin/Apache/WURFL.pm
===================================================================
--- trunk/cgi-bin/Apache/WURFL.pm	2010-08-19 04:02:32 UTC (rev 17154)
+++ trunk/cgi-bin/Apache/WURFL.pm	2010-08-19 05:56:41 UTC (rev 17155)
@@ -94,7 +94,7 @@
                     return $self->_process_url_args_for_friends($1, $args);
                 }
 
-                if ($uri =~ /^\/(\w+)\/tag\/(\w+)/) {
+                if ($uri =~ /^\/(\w+)\/tag\/(.+)/) {
                     # $username = $1; $tagname  = $2;
                     return "$mobile_domain/read/user/$1/tag/$2";
                 }
@@ -109,7 +109,7 @@
                     return $self->_process_url_args_for_friends($username, $args);
                 }
 
-                if ($uri =~ /^\/tag\/(\w+)/) {
+                if ($uri =~ /^\/tag\/(.+)/) {
                     # $tagname  = $1;
                     return "$mobile_domain/read/user/$username/tag/$1";
                 }

Tags: livejournal, pm, slartyblartfast
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