журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22875: LJSUP-13578: XML RPC paid repost are not...

Committer: nnikulochkina
LJSUP-13578: XML RPC paid repost are not accessible
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-09-12 11:28:29 UTC (rev 22874)
+++ trunk/cgi-bin/ljprotocol.pl	2012-09-12 11:40:40 UTC (rev 22875)
@@ -268,7 +268,7 @@
         $req->{'ver'} = 0 unless defined $req->{'ver'};
 
         # check specified language
-        if ($req->{'lang'} && not grep /^$req->{'lang'}$/, @LJ::LANGS) {
+        if ($req->{'lang'} && not grep /^$req->{'lang'}$/, (@LJ::LANGS, 'en')) {
             return fail($err, 221, $req->{'lang'} );
         }
     }

Tags: livejournal, nikulochkina, nnikulochkina, pl
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