Changeset 1850


Ignore:
Timestamp:
07/04/09 10:34:43 (3 years ago)
Author:
tomdooley
Message:

Fixed #1878: Updated phpMyAdmin to version 3.2.0.1

Location:
trunk
Files:
1 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r1849 r1850  
    11ispCP ω 1.0.1 Changelog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     3 
     42009-07-04 Thomas Wacker 
     5        - TOOLS: 
     6                * Fixed #1878: Updated phpMyAdmin to version 3.2.0.1 
    37 
    482009-07-02 Thomas Wacker 
  • trunk/gui/tools/pma/ChangeLog

    r1838 r1850  
    33---------------------- 
    44 
    5 $Id: ChangeLog 12576 2009-06-15 15:30:30Z lem9 $ 
     5$Id: ChangeLog 12608 2009-06-30 10:48:08Z lem9 $ 
    66$HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $ 
     7 
     83.2.0.1 (2009-06-30) 
     9- [security] XSS: Insufficient output sanitizing in bookmarks  
    710 
    8113.2.0.0 (2009-06-15) 
     
    1013+ rfe #2127987 warn when session.gc_maxlifetime is less than cookie validity 
    1114+ rfe #2100910 configurable default charset for import 
    12 + rfe #1913541 link to InnoDB status when error 1005 occurs 
     15+ rfe #1913541 link to InnoDB status when error 150 occurs 
    1316+ rfe #1927189 strip ` from column names on import 
    1417+ rfe #1821619 LeftFrameDBSeparator can be an array 
  • trunk/gui/tools/pma/Documentation.html

    r1838 r1850  
    66<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" 
    77    version="-//W3C//DTD XHTML 1.1//EN" dir="ltr"> 
    8 <!-- $Id: Documentation.html 12576 2009-06-15 15:30:30Z lem9 $ --> 
     8<!-- $Id: Documentation.html 12609 2009-06-30 10:52:07Z lem9 $ --> 
    99<head> 
    1010    <link rel="icon" href="./favicon.ico" type="image/x-icon" /> 
    1111    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> 
    1212    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    13     <title>phpMyAdmin 3.2.0 - Documentation</title> 
     13    <title>phpMyAdmin 3.2.0.1 - Documentation</title> 
    1414    <link rel="stylesheet" type="text/css" href="docs.css" /> 
    1515</head> 
     
    1919    <h1> 
    2020        <a href="http://www.phpmyadmin.net/">php<span class="myadmin">MyAdmin</span></a> 
    21         3.2.0 
     21        3.2.0.1 
    2222        Documentation 
    2323    </h1> 
     
    5555    </li> 
    5656    <li>Documentation version: 
    57         <i>$Id: Documentation.html 12576 2009-06-15 15:30:30Z lem9 $</i> 
     57        <i>$Id: Documentation.html 12609 2009-06-30 10:52:07Z lem9 $</i> 
    5858    </li> 
    5959</ul> 
  • trunk/gui/tools/pma/Documentation.txt

    r1838 r1850  
    1 phpMyAdmin 3.2.0 Documentation 
     1phpMyAdmin 3.2.0.1 Documentation 
    22 
    33  * Top 
     
    2121      + Version history: ChangeLog 
    2222      + License: LICENSE 
    23   * Documentation version: $Id: Documentation.html 12576 2009-06-15 15:30:30Z 
     23  * Documentation version: $Id: Documentation.html 12609 2009-06-30 10:52:07Z 
    2424    lem9 $ 
    2525 
  • trunk/gui/tools/pma/README

    r1838 r1850  
    1 $Id: README 12576 2009-06-15 15:30:30Z lem9 $ 
     1$Id: README 12609 2009-06-30 10:52:07Z lem9 $ 
    22 
    33phpMyAdmin - Readme 
     
    66  A set of PHP-scripts to manage MySQL over the web. 
    77 
    8   Version 3.2.0 
    9   ------------- 
     8  Version 3.2.0.1 
     9  --------------- 
    1010  http://www.phpmyadmin.net/ 
    1111 
  • trunk/gui/tools/pma/libraries/Config.class.php

    r1838 r1850  
    44 * 
    55 * 
    6  * @version $Id: Config.class.php 12576 2009-06-15 15:30:30Z lem9 $ 
     6 * @version $Id: Config.class.php 12609 2009-06-30 10:52:07Z lem9 $ 
    77 * @package phpMyAdmin 
    88 */ 
     
    9393    function checkSystem() 
    9494    { 
    95         $this->set('PMA_VERSION', '3.2.0'); 
     95        $this->set('PMA_VERSION', '3.2.0.1'); 
    9696        /** 
    9797         * @deprecated 
  • trunk/gui/tools/pma/libraries/auth/swekey/swekey.auth.lib.php

    r1638 r1850  
    11<?php 
    2   
     2/** 
     3 * @package Swekey 
     4 */ 
     5 
     6/** 
     7 * Checks Swekey authentication. 
     8 */ 
    39function Swekey_auth_check() 
    410{ 
     
    915        $_SESSION['SWEKEY'] = array(); 
    1016    } 
    11      
     17 
    1218    $_SESSION['SWEKEY']['ENABLED'] = (! empty($confFile) && file_exists($confFile)); 
    1319 
     
    1824        $valid_swekeys = split("\n",@file_get_contents($confFile)); 
    1925        foreach ($valid_swekeys as $line) { 
    20             if (preg_match("/^[0-9A-F]{32}:.+$/", $line) != false)     
    21                         {   
     26            if (preg_match("/^[0-9A-F]{32}:.+$/", $line) != false) 
     27                        { 
    2228                                $items = explode(":", $line); 
    2329                                if (count($items) == 2) 
    24                     $_SESSION['SWEKEY']['VALID_SWEKEYS'][$items[0]] = trim($items[1]);  
    25                         }   
     30                    $_SESSION['SWEKEY']['VALID_SWEKEYS'][$items[0]] = trim($items[1]); 
     31                        } 
    2632            else if (preg_match("/^[A-Z_]+=.*$/", $line) != false) { 
    2733                $items = explode("=", $line); 
    2834                $_SESSION['SWEKEY']['CONF_'.trim($items[0])] = trim($items[1]); 
    29             }       
    30         } 
    31          
     35            } 
     36        } 
     37 
    3238        // Set default values for settings 
    3339        if (! isset($_SESSION['SWEKEY']['CONF_SERVER_CHECK'])) 
    34                 $_SESSION['SWEKEY']['CONF_SERVER_CHECK'] = "";         
     40                $_SESSION['SWEKEY']['CONF_SERVER_CHECK'] = ""; 
    3541        if (! isset($_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN'])) 
    3642                $_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN'] = ""; 
     
    4248                $_SESSION['SWEKEY']['CONF_ENABLE_TOKEN_CACHE'] = true; 
    4349        if (! isset($_SESSION['SWEKEY']['CONF_DEBUG'])) 
    44             $_SESSION['SWEKEY']['CONF_DEBUG'] = false;  
     50            $_SESSION['SWEKEY']['CONF_DEBUG'] = false; 
    4551     } 
    4652 
    4753    // check if a web key has been authenticated 
    48     if ($_SESSION['SWEKEY']['ENABLED']) {        
     54    if ($_SESSION['SWEKEY']['ENABLED']) { 
    4955        if (empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'])) 
    50            return false;         
     56           return false; 
    5157        } 
    52          
     58 
    5359        return true; 
    5460} 
    5561 
    5662 
     63/** 
     64 * Handle Swekey authentication error. 
     65 */ 
    5766function Swekey_auth_error() 
    5867{ 
    59     if (! isset($_SESSION['SWEKEY']))  
     68    if (! isset($_SESSION['SWEKEY'])) 
    6069        return null; 
    6170 
    62         if (! $_SESSION['SWEKEY']['ENABLED'])  
     71        if (! $_SESSION['SWEKEY']['ENABLED']) 
    6372        return null; 
    6473 
     
    6978    function Swekey_GetValidKey() 
    7079        { 
    71             var valids = "<?php  
    72                 foreach ($_SESSION['SWEKEY']['VALID_SWEKEYS'] as $key => $value)  
     80            var valids = "<?php 
     81                foreach ($_SESSION['SWEKEY']['VALID_SWEKEYS'] as $key => $value) 
    7382                        echo $key.','; 
    7483                ?>"; 
    7584        var connected_keys = Swekey_ListKeyIds().split(","); 
    76         for (i in connected_keys)  
     85        for (i in connected_keys) 
    7786            if (connected_keys[i] != null && connected_keys[i].length == 32) 
    7887                    if (valids.indexOf(connected_keys[i]) >= 0) 
    7988                       return connected_keys[i]; 
    8089 
    81          
     90 
    8291        if (connected_keys.length > 0) 
    8392                if (connected_keys[0].length == 32) 
    8493                   return "unknown_key_" + connected_keys[0]; 
    85                  
     94 
    8695                return "none"; 
    8796        } 
    8897 
    8998    var key = Swekey_GetValidKey(); 
    90      
     99 
    91100    function timedCheck() 
    92101    { 
    93102        if (key != Swekey_GetValidKey()) 
    94103        { 
    95             window.location.search = "?swekey_reset";   
     104            window.location.search = "?swekey_reset"; 
    96105        } 
    97106                else 
     
    103112        <?php 
    104113 
    105         if (! empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY']))  
     114        if (! empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'])) 
    106115                return null; 
    107116 
    108     if (count($_SESSION['SWEKEY']['VALID_SWEKEYS']) == 0)  
    109         return sprintf($GLOBALS['strSwekeyNoKeyId'], $GLOBALS['cfg']['Server']['auth_swekey_config']);  
     117    if (count($_SESSION['SWEKEY']['VALID_SWEKEYS']) == 0) 
     118        return sprintf($GLOBALS['strSwekeyNoKeyId'], $GLOBALS['cfg']['Server']['auth_swekey_config']); 
    110119 
    111120    require_once "./libraries/auth/swekey/swekey.php"; 
    112      
     121 
    113122    Swekey_SetCheckServer($_SESSION['SWEKEY']['CONF_SERVER_CHECK']); 
    114123    Swekey_SetRndTokenServer($_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN']); 
     
    122131        $pos = strrpos($caFile, '/'); 
    123132        if ($pos === false) 
    124             $pos = strrpos($caFile, '\\'); // windows   
     133            $pos = strrpos($caFile, '\\'); // windows 
    125134        $caFile = substr($caFile, 0, $pos + 1).'musbe-ca.crt'; 
    126135//        echo "\n<!-- $caFile -->\n"; 
     
    132141        Swekey_SetCAFile($caFile); 
    133142    else if (! empty($caFile) && (substr($_SESSION['SWEKEY']['CONF_SERVER_CHECK'], 0, 8) == "https://")) 
    134         return "Internal Error: CA File $caFile not found";   
    135                  
     143        return "Internal Error: CA File $caFile not found"; 
     144 
    136145    $result = null; 
    137     parse_str($_SERVER['QUERY_STRING']);  
     146    parse_str($_SERVER['QUERY_STRING']); 
    138147    if (isset($swekey_id)) { 
    139148        unset($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY']); 
     
    148157                    $result = $GLOBALS['strSwekeyAuthFailed'] . ' (' . Swekey_GetLastError() . ')'; 
    149158                } 
    150                 else {             
     159                else { 
    151160                    $_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'] = $swekey_id; 
    152161                        $_SESSION['SWEKEY']['FORCE_USER'] = $_SESSION['SWEKEY']['VALID_SWEKEYS'][$swekey_id]; 
    153162                    return null; 
    154                 }            
     163                } 
    155164            } 
    156165            else { 
    157                 $result = $GLOBALS['strSwekeyNoKey'];  
     166                $result = $GLOBALS['strSwekeyNoKey']; 
    158167                if ($_SESSION['SWEKEY']['CONF_DEBUG']) 
    159168                { 
    160                     $result .= "<br>".$swekey_id;   
     169                    $result .= "<br>".$swekey_id; 
    161170                } 
    162                 unset($_SESSION['SWEKEY']['CONF_LOADED']); // reload the conf file  
     171                unset($_SESSION['SWEKEY']['CONF_LOADED']); // reload the conf file 
    163172             } 
    164         }                 
    165     } 
    166     else  
    167         unset($_SESSION['SWEKEY']);         
     173        } 
     174    } 
     175    else 
     176        unset($_SESSION['SWEKEY']); 
    168177 
    169178    $_SESSION['SWEKEY']['RND_TOKEN'] = Swekey_GetFastRndToken(); 
     
    186195                    url = url.substr(0, url.indexOf("?")); 
    187196                Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>"); 
    188                 var otp = Swekey_GetOtp(key, <?php echo '"'.$_SESSION['SWEKEY']['RND_TOKEN'].'"';?>);      
     197                var otp = Swekey_GetOtp(key, <?php echo '"'.$_SESSION['SWEKEY']['RND_TOKEN'].'"';?>); 
    189198                window.location.search="?swekey_id=" + key + "&swekey_otp=" + otp; 
    190199            } 
    191200        </script> 
    192201        <?php 
    193         return $GLOBALS['strSwekeyAuthenticating'];  
    194     } 
    195   
     202        return $GLOBALS['strSwekeyAuthenticating']; 
     203    } 
     204 
    196205    return $result; 
    197206} 
    198207 
    199208 
     209/** 
     210 * Perform login using Swekey. 
     211 */ 
    200212function Swekey_login($input_name, $input_go) 
    201213{ 
     
    212224    if (isset($_SESSION['SWEKEY']) && $_SESSION['SWEKEY']['ENABLED']) { 
    213225        echo '<script type="text/javascript">'; 
    214         if (empty($_SESSION['SWEKEY']['FORCE_USER']))  
     226        if (empty($_SESSION['SWEKEY']['FORCE_USER'])) 
    215227            echo 'var user = null;'; 
    216228        else 
     
    222234                window.open("http://phpmyadmin.net/auth_key"); 
    223235            } 
    224          
     236 
    225237            var input_username = document.getElementById("<?php echo $input_name; ?>"); 
    226238            var input_go = document.getElementById("<?php echo $input_go; ?>"); 
     
    241253                        } 
    242254                        input_username.readOnly = true; 
    243         
     255 
    244256                if (input_username.nextSibling == null) 
    245257                        input_username.parentNode.appendChild(swekey_status); 
     
    268280        unset($_SESSION['SWEKEY']); 
    269281} 
    270      
     282 
    271283?> 
  • trunk/gui/tools/pma/libraries/common.lib.php

    r1838 r1850  
    44 * Misc functions used all over the scripts. 
    55 * 
    6  * @version $Id: common.lib.php 12492 2009-05-24 12:28:04Z lem9 $ 
     6 * @version $Id: common.lib.php 12608 2009-06-30 10:48:08Z lem9 $ 
    77 * @package phpMyAdmin 
    88 */ 
     
    306306    // first check for the SQL parser having hit an error 
    307307    if (PMA_SQP_isError()) { 
    308         return $parsed_sql; 
     308        return htmlspecialchars($parsed_sql['raw']); 
    309309    } 
    310310    // then check for an array 
  • trunk/gui/tools/pma/sql.php

    r1838 r1850  
    44 * @todo    we must handle the case if sql.php is called directly with a query 
    55 *          that returns 0 rows - to prevent cyclic redirects or includes 
    6  * @version $Id: sql.php 12340 2009-04-09 14:20:44Z nijel $ 
     6 * @version $Id: sql.php 12608 2009-06-30 10:48:08Z lem9 $ 
    77 * @package phpMyAdmin 
    88 */ 
     
    312312            } 
    313313            $active_page = $goto; 
    314             $message = PMA_Message::rawError($error); 
     314            $message = htmlspecialchars(PMA_Message::rawError($error)); 
    315315            /** 
    316316             * Go to target path. 
  • trunk/gui/tools/pma/translators.html

    r1838 r1850  
    33<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" 
    44    version="-//W3C//DTD XHTML 1.1//EN" dir="ltr"> 
    5 <!-- $Id: translators.html 12576 2009-06-15 15:30:30Z lem9 $ --> 
     5<!-- $Id: translators.html 12609 2009-06-30 10:52:07Z lem9 $ --> 
    66 
    77<head> 
     
    99    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> 
    1010    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    11     <title>phpMyAdmin 3.2.0 - Official translators</title> 
     11    <title>phpMyAdmin 3.2.0.1 - Official translators</title> 
    1212    <link rel="stylesheet" type="text/css" href="docs.css" /> 
    1313</head> 
     
    1717    <h1> 
    1818        <a href="http://www.phpmyadmin.net/">php<span class="myadmin">MyAdmin</span></a> 
    19         3.2.0 
     19        3.2.0.1 
    2020        official translators list 
    2121    </h1> 
Note: See TracChangeset for help on using the changeset viewer.