Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Jun 21, 2017
2 parents 5f6720f + a1ffa68 commit cc7dfc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -35,6 +35,7 @@ phpMyAdmin - ChangeLog
- issue #13386 Avoid PHP errors with non existing configuration on OS X
- issue #13388 Show only supported charsets for conversion
- issue #13392 Fixed operation with session.auto_start enabled
- issue #13383 "Create PHP code" is broken

4.7.1 (2017-05-25)
- issue #13132 Always execute tracking queries as controluser
Expand Down
9 changes: 4 additions & 5 deletions libraries/Util.php
Expand Up @@ -1018,15 +1018,14 @@ public static function getMessage(

if (! empty($GLOBALS['show_as_php'])) {
$new_line = '\\n"<br />' . "\n" . '&nbsp;&nbsp;&nbsp;&nbsp;. "';
$query_base = '$sql = \'' . $query_base;
$query_base = '<code class="php"><pre>' . "\n"
. htmlspecialchars(addslashes($query_base));
$query_base = htmlspecialchars(addslashes($query_base));
$query_base = preg_replace(
'/((\015\012)|(\015)|(\012))/',
$new_line,
$query_base
);
$query_base = '$sql = \'' . $query_base . '"';
$query_base = '<code class="php"><pre>' . "\n"
. '$sql = "' . $query_base;
} elseif ($query_too_big) {
$query_base = htmlspecialchars($query_base);
} else {
Expand Down Expand Up @@ -1170,7 +1169,7 @@ public static function getMessage(

//Clean up the end of the PHP
if (! empty($GLOBALS['show_as_php'])) {
$retval .= '\';' . "\n"
$retval .= '";' . "\n"
. '</pre></code>';
}
$retval .= '</div>';
Expand Down

0 comments on commit cc7dfc0

Please sign in to comment.