wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

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

Committer: gprochaev
LJSUP-5987: Redirection to mobile version

"|" is not admissible in a domain names
alone "-" represents a range of characters, need use "\-" in "[]"
"\w" already include "_" character, so we not need to check it

U   trunk/cgi-bin/Apache/WURFL.pm
Modified: trunk/cgi-bin/Apache/WURFL.pm
===================================================================
--- trunk/cgi-bin/Apache/WURFL.pm	2010-08-20 07:56:55 UTC (rev 17166)
+++ trunk/cgi-bin/Apache/WURFL.pm	2010-08-20 08:47:54 UTC (rev 17167)
@@ -77,7 +77,7 @@
     my $host = $opts{'host'};
     my $args = $opts{'args'};
 
-    if ($host =~ /^([\w|-]+)\.\Q$LJ::DOMAIN\Q/) {
+    if ($host =~ /^([\w\-]+)\.\Q$LJ::DOMAIN\Q/) {
         my $username = $1;
         if ($username eq 'www') { # main lj pages
 

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