Merge commit 'cda4290749f10ed686bfb466b415e5e3a1c04fea'
This commit is contained in:
commit
5231649343
@ -15,7 +15,9 @@ phpMyAdmin - ChangeLog
|
||||
- issue Improve performance of zip file import
|
||||
- issue #12196 Removed $cfg['ThemePath']
|
||||
|
||||
4.6.1 (not yet released)
|
||||
4.6.2 (not yet released)
|
||||
|
||||
4.6.1 (2016-05-02)
|
||||
- issue #12120 PMA_Util not found in insert_edit.lib.php
|
||||
- issue #12118 Fixed activation of some languages
|
||||
- issue #12121 Fixed error in 3NF step of normalization
|
||||
|
||||
@ -55,16 +55,16 @@ $github_url = 'https://github.com/phpmyadmin/phpmyadmin/';
|
||||
$faq_url = 'http://docs.phpmyadmin.net/en/latest/faq.html';
|
||||
|
||||
$replaces = array(
|
||||
'@(http://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@'
|
||||
=> '<a href="\\1">\\1</a>',
|
||||
'@(https?://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@'
|
||||
=> '<a href="url.php?url=\\1">\\1</a>',
|
||||
|
||||
// sourceforge users
|
||||
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +<(.*)@users.sourceforge.net>/i'
|
||||
=> '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>',
|
||||
=> '\\1 <a href="url.php?url=https://sourceforge.net/users/\\3/">\\2</a>',
|
||||
'/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i'
|
||||
=> 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
|
||||
=> 'thanks to <a href="url.php?url=https://sourceforge.net/users/\\2/">\\1</a>',
|
||||
'/thanks to ([^\(\r\n]+) -\s+([-\w]+)/i'
|
||||
=> 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
|
||||
=> 'thanks to <a href="url.php?url=https://sourceforge.net/users/\\2/">\\1</a>',
|
||||
|
||||
// mail address
|
||||
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +<(.*@.*)>/i'
|
||||
@ -72,59 +72,59 @@ $replaces = array(
|
||||
|
||||
// linking patches
|
||||
'/patch\s*#?([0-9]{6,})/i'
|
||||
=> '<a href="' . $tracker_url . '">patch #\\1</a>',
|
||||
=> '<a href="url.php?url=' . $tracker_url . '">patch #\\1</a>',
|
||||
|
||||
// linking RFE
|
||||
'/(?:rfe|feature)\s*#?([0-9]{6,})/i'
|
||||
=> '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">RFE #\\1</a>',
|
||||
=> '<a href="url.php?url=https://sourceforge.net/support/tracker.php?aid=\\1">RFE #\\1</a>',
|
||||
|
||||
// linking files
|
||||
'/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
|
||||
=> '\\1<a href="' . $github_url . 'commits/HEAD/\\2">\\2</a>',
|
||||
=> '\\1<a href="url.php?url=' . $github_url . 'commits/HEAD/\\2">\\2</a>',
|
||||
|
||||
// FAQ entries
|
||||
'/FAQ ([0-9]+)\.([0-9a-z]+)/i'
|
||||
=> '<a href="' . $faq_url . '#faq\\1-\\2">FAQ \\1.\\2</a>',
|
||||
=> '<a href="url.php?url=' . $faq_url . '#faq\\1-\\2">FAQ \\1.\\2</a>',
|
||||
|
||||
// linking bugs
|
||||
'/bug\s*#?([0-9]{6,})/i'
|
||||
=> '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">bug #\\1</a>',
|
||||
=> '<a href="url.php?url=https://sourceforge.net/support/tracker.php?aid=\\1">bug #\\1</a>',
|
||||
|
||||
// all other 6+ digit numbers are treated as bugs
|
||||
'/(?<!bug|RFE|patch) #?([0-9]{6,})/i'
|
||||
=> '<a href="' . $tracker_url . '">bug #\\1</a>',
|
||||
=> '<a href="url.php?url=' . $tracker_url . '">bug #\\1</a>',
|
||||
|
||||
// GitHub issues
|
||||
'/issue\s*#?([0-9]{4,5}) /i'
|
||||
=> '<a href="' . $github_url . 'issues/\\1">issue #\\1</a> ',
|
||||
=> '<a href="url.php?url=' . $github_url . 'issues/\\1">issue #\\1</a> ',
|
||||
|
||||
// transitioned SF.net project bug/rfe/patch links
|
||||
// by the time we reach 6-digit numbers, we can probably retire the above links
|
||||
'/patch\s*#?([0-9]{4,5}) /i'
|
||||
=> '<a href="' . $tracker_url_patch . '">patch #\\1</a> ',
|
||||
=> '<a href="url.php?url=' . $tracker_url_patch . '">patch #\\1</a> ',
|
||||
'/(?:rfe|feature)\s*#?([0-9]{4,5}) /i'
|
||||
=> '<a href="' . $tracker_url_rfe . '">RFE #\\1</a> ',
|
||||
=> '<a href="url.php?url=' . $tracker_url_rfe . '">RFE #\\1</a> ',
|
||||
'/bug\s*#?([0-9]{4,5}) /i'
|
||||
=> '<a href="' . $tracker_url_bug . '">bug #\\1</a> ',
|
||||
=> '<a href="url.php?url=' . $tracker_url_bug . '">bug #\\1</a> ',
|
||||
'/(?<!bug|RFE|patch) #?([0-9]{4,5}) /i'
|
||||
=> '<a href="' . $tracker_url_bug . '">bug #\\1</a> ',
|
||||
=> '<a href="url.php?url=' . $tracker_url_bug . '">bug #\\1</a> ',
|
||||
|
||||
// CVE/CAN entries
|
||||
'/((CAN|CVE)-[0-9]+-[0-9]+)/'
|
||||
=> '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
|
||||
=> '<a href="url.php?url=https://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
|
||||
|
||||
// PMASAentries
|
||||
'/(PMASA-[0-9]+-[0-9]+)/'
|
||||
=> '<a href="https://www.phpmyadmin.net/security/\\1/">\\1</a>',
|
||||
=> '<a href="url.php?url=https://www.phpmyadmin.net/security/\\1/">\\1</a>',
|
||||
|
||||
// Highlight releases (with links)
|
||||
'/([0-9]+)\.([0-9]+)\.([0-9]+)\.0 (\([0-9-]+\))/'
|
||||
=> '<a name="\\1_\\2_\\3"></a>'
|
||||
. '<a href="' . $github_url . 'commits/RELEASE_\\1_\\2_\\3">'
|
||||
. '<a href="url.php?url=' . $github_url . 'commits/RELEASE_\\1_\\2_\\3">'
|
||||
. '\\1.\\2.\\3.0 \\4</a>',
|
||||
'/([0-9]+)\.([0-9]+)\.([0-9]+)\.([1-9][0-9]*) (\([0-9-]+\))/'
|
||||
=> '<a name="\\1_\\2_\\3_\\4"></a>'
|
||||
. '<a href="' . $github_url . 'commits/RELEASE_\\1_\\2_\\3_\\4">'
|
||||
. '<a href="url.php?url=' . $github_url . 'commits/RELEASE_\\1_\\2_\\3_\\4">'
|
||||
. '\\1.\\2.\\3.\\4 \\5</a>',
|
||||
|
||||
// Highlight releases (not linkable)
|
||||
|
||||
11
index.php
11
index.php
@ -155,7 +155,7 @@ if ($server > 0 || count($cfg['Servers']) > 1
|
||||
. 'please do not change root, debian-sys-maint and pma users. '
|
||||
. 'More information is available at %s.'
|
||||
),
|
||||
'<a href="http://demo.phpmyadmin.net/">demo.phpmyadmin.net</a>'
|
||||
'<a href="url.php?url=https://demo.phpmyadmin.net/">demo.phpmyadmin.net</a>'
|
||||
);
|
||||
echo '</p>';
|
||||
echo '</div>';
|
||||
@ -396,19 +396,12 @@ PMA_printListItem(
|
||||
null,
|
||||
'_blank'
|
||||
);
|
||||
PMA_printListItem(
|
||||
__('Wiki'),
|
||||
'li_pma_wiki',
|
||||
PMA_linkURL('http://wiki.phpmyadmin.net/'),
|
||||
null,
|
||||
'_blank'
|
||||
);
|
||||
|
||||
// does not work if no target specified, don't know why
|
||||
PMA_printListItem(
|
||||
__('Official Homepage'),
|
||||
'li_pma_homepage',
|
||||
PMA_linkURL('http://www.phpMyAdmin.net/'),
|
||||
PMA_linkURL('https://www.phpMyAdmin.net/'),
|
||||
null,
|
||||
'_blank'
|
||||
);
|
||||
|
||||
@ -738,6 +738,7 @@ function PMA_isAllowedDomain($url)
|
||||
$_SERVER['SERVER_NAME'],
|
||||
/* phpMyAdmin domains */
|
||||
'wiki.phpmyadmin.net', 'www.phpmyadmin.net', 'phpmyadmin.net',
|
||||
'demo.phpmyadmin.net',
|
||||
'docs.phpmyadmin.net',
|
||||
/* mysql.com domains */
|
||||
'dev.mysql.com','bugs.mysql.com',
|
||||
@ -745,6 +746,8 @@ function PMA_isAllowedDomain($url)
|
||||
'mariadb.org',
|
||||
/* php.net domains */
|
||||
'php.net',
|
||||
/* sourceforge.net domain */
|
||||
'sourceforge.net',
|
||||
/* Github domains*/
|
||||
'github.com','www.github.com',
|
||||
/* Following are doubtful ones. */
|
||||
|
||||
@ -239,7 +239,7 @@ function PMA_countLines($filename)
|
||||
foreach (explode('/', $filename) as $part) {
|
||||
if ($part == '..') {
|
||||
$depath--;
|
||||
} elseif ($part != '.') {
|
||||
} elseif ($part != '.' || $part === '') {
|
||||
$depath++;
|
||||
}
|
||||
if ($depath < 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user