mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix download link in MySQL rows
https://forum.virtualmin.com/t/mariadb-download-link-when-viewing-text-database-fields/134323/14
This commit is contained in:
@@ -391,7 +391,14 @@ if ($total || $in{'new'}) {
|
||||
elsif ($displayconfig{'blob_mode'} &&
|
||||
&is_blob($str[$j]) && $c ne '') {
|
||||
# Show download link for blob
|
||||
push(@cols, &ui_link("download.cgi?db=$in{'db'}&table=$in{'table'}&start=$in{'start'}".$searchargs.$sortargs."&row=$i&col=$j",$text{'view_download'}));
|
||||
push(@cols, &ui_link(
|
||||
"@{[&get_webprefix()]}/".
|
||||
"$module_name/download.cgi?".
|
||||
"db=$in{'db'}&table=$in{'table'}".
|
||||
"&start=$in{'start'}".
|
||||
$searchargs.$sortargs.
|
||||
"&row=$i&col=$j",
|
||||
$text{'view_download'}));
|
||||
}
|
||||
else {
|
||||
# Just show text (up to limit)
|
||||
|
||||
Reference in New Issue
Block a user