Changeset 1850
- Timestamp:
- 07/04/09 10:34:43 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 10 edited
-
CHANGELOG (modified) (1 diff)
-
gui/tools/pma/ChangeLog (modified) (2 diffs)
-
gui/tools/pma/Documentation.html (modified) (3 diffs)
-
gui/tools/pma/Documentation.txt (modified) (2 diffs)
-
gui/tools/pma/README (modified) (2 diffs)
-
gui/tools/pma/RELEASE-DATE-3.2.0 (deleted)
-
gui/tools/pma/RELEASE-DATE-3.2.0.1 (added)
-
gui/tools/pma/libraries/Config.class.php (modified) (2 diffs)
-
gui/tools/pma/libraries/auth/swekey/swekey.auth.lib.php (modified) (14 diffs)
-
gui/tools/pma/libraries/common.lib.php (modified) (2 diffs)
-
gui/tools/pma/sql.php (modified) (2 diffs)
-
gui/tools/pma/translators.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG
r1849 r1850 1 1 ispCP ω 1.0.1 Changelog 2 2 ~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 4 2009-07-04 Thomas Wacker 5 - TOOLS: 6 * Fixed #1878: Updated phpMyAdmin to version 3.2.0.1 3 7 4 8 2009-07-02 Thomas Wacker -
trunk/gui/tools/pma/ChangeLog
r1838 r1850 3 3 ---------------------- 4 4 5 $Id: ChangeLog 12 576 2009-06-15 15:30:30Z lem9 $5 $Id: ChangeLog 12608 2009-06-30 10:48:08Z lem9 $ 6 6 $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $ 7 8 3.2.0.1 (2009-06-30) 9 - [security] XSS: Insufficient output sanitizing in bookmarks 7 10 8 11 3.2.0.0 (2009-06-15) … … 10 13 + rfe #2127987 warn when session.gc_maxlifetime is less than cookie validity 11 14 + rfe #2100910 configurable default charset for import 12 + rfe #1913541 link to InnoDB status when error 1 005occurs15 + rfe #1913541 link to InnoDB status when error 150 occurs 13 16 + rfe #1927189 strip ` from column names on import 14 17 + rfe #1821619 LeftFrameDBSeparator can be an array -
trunk/gui/tools/pma/Documentation.html
r1838 r1850 6 6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" 7 7 version="-//W3C//DTD XHTML 1.1//EN" dir="ltr"> 8 <!-- $Id: Documentation.html 12 576 2009-06-15 15:30:30Z lem9 $ -->8 <!-- $Id: Documentation.html 12609 2009-06-30 10:52:07Z lem9 $ --> 9 9 <head> 10 10 <link rel="icon" href="./favicon.ico" type="image/x-icon" /> 11 11 <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> 12 12 <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> 14 14 <link rel="stylesheet" type="text/css" href="docs.css" /> 15 15 </head> … … 19 19 <h1> 20 20 <a href="http://www.phpmyadmin.net/">php<span class="myadmin">MyAdmin</span></a> 21 3.2.0 21 3.2.0.1 22 22 Documentation 23 23 </h1> … … 55 55 </li> 56 56 <li>Documentation version: 57 <i>$Id: Documentation.html 12 576 2009-06-15 15:30:30Z lem9 $</i>57 <i>$Id: Documentation.html 12609 2009-06-30 10:52:07Z lem9 $</i> 58 58 </li> 59 59 </ul> -
trunk/gui/tools/pma/Documentation.txt
r1838 r1850 1 phpMyAdmin 3.2.0 Documentation1 phpMyAdmin 3.2.0.1 Documentation 2 2 3 3 * Top … … 21 21 + Version history: ChangeLog 22 22 + License: LICENSE 23 * Documentation version: $Id: Documentation.html 12 576 2009-06-15 15:30:30Z23 * Documentation version: $Id: Documentation.html 12609 2009-06-30 10:52:07Z 24 24 lem9 $ 25 25 -
trunk/gui/tools/pma/README
r1838 r1850 1 $Id: README 12 576 2009-06-15 15:30:30Z lem9 $1 $Id: README 12609 2009-06-30 10:52:07Z lem9 $ 2 2 3 3 phpMyAdmin - Readme … … 6 6 A set of PHP-scripts to manage MySQL over the web. 7 7 8 Version 3.2.0 9 ------------- 8 Version 3.2.0.1 9 --------------- 10 10 http://www.phpmyadmin.net/ 11 11 -
trunk/gui/tools/pma/libraries/Config.class.php
r1838 r1850 4 4 * 5 5 * 6 * @version $Id: Config.class.php 12 576 2009-06-15 15:30:30Z lem9 $6 * @version $Id: Config.class.php 12609 2009-06-30 10:52:07Z lem9 $ 7 7 * @package phpMyAdmin 8 8 */ … … 93 93 function checkSystem() 94 94 { 95 $this->set('PMA_VERSION', '3.2.0 ');95 $this->set('PMA_VERSION', '3.2.0.1'); 96 96 /** 97 97 * @deprecated -
trunk/gui/tools/pma/libraries/auth/swekey/swekey.auth.lib.php
r1638 r1850 1 1 <?php 2 2 /** 3 * @package Swekey 4 */ 5 6 /** 7 * Checks Swekey authentication. 8 */ 3 9 function Swekey_auth_check() 4 10 { … … 9 15 $_SESSION['SWEKEY'] = array(); 10 16 } 11 17 12 18 $_SESSION['SWEKEY']['ENABLED'] = (! empty($confFile) && file_exists($confFile)); 13 19 … … 18 24 $valid_swekeys = split("\n",@file_get_contents($confFile)); 19 25 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 { 22 28 $items = explode(":", $line); 23 29 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 } 26 32 else if (preg_match("/^[A-Z_]+=.*$/", $line) != false) { 27 33 $items = explode("=", $line); 28 34 $_SESSION['SWEKEY']['CONF_'.trim($items[0])] = trim($items[1]); 29 } 30 } 31 35 } 36 } 37 32 38 // Set default values for settings 33 39 if (! isset($_SESSION['SWEKEY']['CONF_SERVER_CHECK'])) 34 $_SESSION['SWEKEY']['CONF_SERVER_CHECK'] = ""; 40 $_SESSION['SWEKEY']['CONF_SERVER_CHECK'] = ""; 35 41 if (! isset($_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN'])) 36 42 $_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN'] = ""; … … 42 48 $_SESSION['SWEKEY']['CONF_ENABLE_TOKEN_CACHE'] = true; 43 49 if (! isset($_SESSION['SWEKEY']['CONF_DEBUG'])) 44 $_SESSION['SWEKEY']['CONF_DEBUG'] = false; 50 $_SESSION['SWEKEY']['CONF_DEBUG'] = false; 45 51 } 46 52 47 53 // check if a web key has been authenticated 48 if ($_SESSION['SWEKEY']['ENABLED']) { 54 if ($_SESSION['SWEKEY']['ENABLED']) { 49 55 if (empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'])) 50 return false; 56 return false; 51 57 } 52 58 53 59 return true; 54 60 } 55 61 56 62 63 /** 64 * Handle Swekey authentication error. 65 */ 57 66 function Swekey_auth_error() 58 67 { 59 if (! isset($_SESSION['SWEKEY'])) 68 if (! isset($_SESSION['SWEKEY'])) 60 69 return null; 61 70 62 if (! $_SESSION['SWEKEY']['ENABLED']) 71 if (! $_SESSION['SWEKEY']['ENABLED']) 63 72 return null; 64 73 … … 69 78 function Swekey_GetValidKey() 70 79 { 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) 73 82 echo $key.','; 74 83 ?>"; 75 84 var connected_keys = Swekey_ListKeyIds().split(","); 76 for (i in connected_keys) 85 for (i in connected_keys) 77 86 if (connected_keys[i] != null && connected_keys[i].length == 32) 78 87 if (valids.indexOf(connected_keys[i]) >= 0) 79 88 return connected_keys[i]; 80 89 81 90 82 91 if (connected_keys.length > 0) 83 92 if (connected_keys[0].length == 32) 84 93 return "unknown_key_" + connected_keys[0]; 85 94 86 95 return "none"; 87 96 } 88 97 89 98 var key = Swekey_GetValidKey(); 90 99 91 100 function timedCheck() 92 101 { 93 102 if (key != Swekey_GetValidKey()) 94 103 { 95 window.location.search = "?swekey_reset"; 104 window.location.search = "?swekey_reset"; 96 105 } 97 106 else … … 103 112 <?php 104 113 105 if (! empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'])) 114 if (! empty($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'])) 106 115 return null; 107 116 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']); 110 119 111 120 require_once "./libraries/auth/swekey/swekey.php"; 112 121 113 122 Swekey_SetCheckServer($_SESSION['SWEKEY']['CONF_SERVER_CHECK']); 114 123 Swekey_SetRndTokenServer($_SESSION['SWEKEY']['CONF_SERVER_RNDTOKEN']); … … 122 131 $pos = strrpos($caFile, '/'); 123 132 if ($pos === false) 124 $pos = strrpos($caFile, '\\'); // windows 133 $pos = strrpos($caFile, '\\'); // windows 125 134 $caFile = substr($caFile, 0, $pos + 1).'musbe-ca.crt'; 126 135 // echo "\n<!-- $caFile -->\n"; … … 132 141 Swekey_SetCAFile($caFile); 133 142 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 136 145 $result = null; 137 parse_str($_SERVER['QUERY_STRING']); 146 parse_str($_SERVER['QUERY_STRING']); 138 147 if (isset($swekey_id)) { 139 148 unset($_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY']); … … 148 157 $result = $GLOBALS['strSwekeyAuthFailed'] . ' (' . Swekey_GetLastError() . ')'; 149 158 } 150 else { 159 else { 151 160 $_SESSION['SWEKEY']['AUTHENTICATED_SWEKEY'] = $swekey_id; 152 161 $_SESSION['SWEKEY']['FORCE_USER'] = $_SESSION['SWEKEY']['VALID_SWEKEYS'][$swekey_id]; 153 162 return null; 154 } 163 } 155 164 } 156 165 else { 157 $result = $GLOBALS['strSwekeyNoKey']; 166 $result = $GLOBALS['strSwekeyNoKey']; 158 167 if ($_SESSION['SWEKEY']['CONF_DEBUG']) 159 168 { 160 $result .= "<br>".$swekey_id; 169 $result .= "<br>".$swekey_id; 161 170 } 162 unset($_SESSION['SWEKEY']['CONF_LOADED']); // reload the conf file 171 unset($_SESSION['SWEKEY']['CONF_LOADED']); // reload the conf file 163 172 } 164 } 165 } 166 else 167 unset($_SESSION['SWEKEY']); 173 } 174 } 175 else 176 unset($_SESSION['SWEKEY']); 168 177 169 178 $_SESSION['SWEKEY']['RND_TOKEN'] = Swekey_GetFastRndToken(); … … 186 195 url = url.substr(0, url.indexOf("?")); 187 196 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'].'"';?>); 189 198 window.location.search="?swekey_id=" + key + "&swekey_otp=" + otp; 190 199 } 191 200 </script> 192 201 <?php 193 return $GLOBALS['strSwekeyAuthenticating']; 194 } 195 202 return $GLOBALS['strSwekeyAuthenticating']; 203 } 204 196 205 return $result; 197 206 } 198 207 199 208 209 /** 210 * Perform login using Swekey. 211 */ 200 212 function Swekey_login($input_name, $input_go) 201 213 { … … 212 224 if (isset($_SESSION['SWEKEY']) && $_SESSION['SWEKEY']['ENABLED']) { 213 225 echo '<script type="text/javascript">'; 214 if (empty($_SESSION['SWEKEY']['FORCE_USER'])) 226 if (empty($_SESSION['SWEKEY']['FORCE_USER'])) 215 227 echo 'var user = null;'; 216 228 else … … 222 234 window.open("http://phpmyadmin.net/auth_key"); 223 235 } 224 236 225 237 var input_username = document.getElementById("<?php echo $input_name; ?>"); 226 238 var input_go = document.getElementById("<?php echo $input_go; ?>"); … … 241 253 } 242 254 input_username.readOnly = true; 243 255 244 256 if (input_username.nextSibling == null) 245 257 input_username.parentNode.appendChild(swekey_status); … … 268 280 unset($_SESSION['SWEKEY']); 269 281 } 270 282 271 283 ?> -
trunk/gui/tools/pma/libraries/common.lib.php
r1838 r1850 4 4 * Misc functions used all over the scripts. 5 5 * 6 * @version $Id: common.lib.php 12 492 2009-05-24 12:28:04Z lem9 $6 * @version $Id: common.lib.php 12608 2009-06-30 10:48:08Z lem9 $ 7 7 * @package phpMyAdmin 8 8 */ … … 306 306 // first check for the SQL parser having hit an error 307 307 if (PMA_SQP_isError()) { 308 return $parsed_sql;308 return htmlspecialchars($parsed_sql['raw']); 309 309 } 310 310 // then check for an array -
trunk/gui/tools/pma/sql.php
r1838 r1850 4 4 * @todo we must handle the case if sql.php is called directly with a query 5 5 * that returns 0 rows - to prevent cyclic redirects or includes 6 * @version $Id: sql.php 12 340 2009-04-09 14:20:44Z nijel$6 * @version $Id: sql.php 12608 2009-06-30 10:48:08Z lem9 $ 7 7 * @package phpMyAdmin 8 8 */ … … 312 312 } 313 313 $active_page = $goto; 314 $message = PMA_Message::rawError($error);314 $message = htmlspecialchars(PMA_Message::rawError($error)); 315 315 /** 316 316 * Go to target path. -
trunk/gui/tools/pma/translators.html
r1838 r1850 3 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" 4 4 version="-//W3C//DTD XHTML 1.1//EN" dir="ltr"> 5 <!-- $Id: translators.html 12 576 2009-06-15 15:30:30Z lem9 $ -->5 <!-- $Id: translators.html 12609 2009-06-30 10:52:07Z lem9 $ --> 6 6 7 7 <head> … … 9 9 <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> 10 10 <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> 12 12 <link rel="stylesheet" type="text/css" href="docs.css" /> 13 13 </head> … … 17 17 <h1> 18 18 <a href="http://www.phpmyadmin.net/">php<span class="myadmin">MyAdmin</span></a> 19 3.2.0 19 3.2.0.1 20 20 official translators list 21 21 </h1>
Note: See TracChangeset
for help on using the changeset viewer.
