logo       
Google Custom Search
    AddThis Social Bookmark Button

SF.net SVN: squirrelmail: [12292] branches/SM-1_4-STABLE/squirrelmail/ func: msg#00001

Subject: SF.net SVN: squirrelmail: [12292] branches/SM-1_4-STABLE/squirrelmail/ functions/i18n.php
Revision: 12292
          
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12292&view=rev
Author:   kink
Date:     2007-03-02 15:09:59 -0800 (Fri, 02 Mar 2007)

Log Message:
-----------
Prevent including index.php for charset decoding (#1671874)

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/functions/i18n.php

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/i18n.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/i18n.php      2007-03-01 
19:07:10 UTC (rev 12291)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/i18n.php      2007-03-02 
23:09:59 UTC (rev 12292)
@@ -107,7 +107,7 @@
 
     $decode=fixcharset($charset);
     $decodefile=SM_PATH . 'functions/decode/' . $decode . '.php';
-    if (file_exists($decodefile)) {
+    if ($decode != 'index' && file_exists($decodefile)) {
       include_once($decodefile);
       $ret = call_user_func('charset_decode_'.$decode, $string, $save_html);
     } else {
@@ -915,4 +915,3 @@
         }
     }
 }
-?>
\ No newline at end of file


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>