mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Shorten displayed SQL query
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@689 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -232,7 +232,7 @@ function is_utf8($val) {
|
||||
|
||||
function shorten_utf8($string, $length) {
|
||||
preg_match("~^(.{0,$length})(.?)~su", $string, $match);
|
||||
return nl2br(htmlspecialchars($match[1])) . ($match[2] ? "<em>...</em>" : "");
|
||||
return htmlspecialchars($match[1]) . ($match[2] ? "<em>...</em>" : "");
|
||||
}
|
||||
|
||||
function friendly_url($val) {
|
||||
|
Reference in New Issue
Block a user