diff --git a/CONTROL/control b/CONTROL/control index 760c606..9f948b5 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.0.15-3 +Version: 1.0.15-4 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.1.11),lighttpd(>=1.4.35-2),jim(>=0.75-1),jim-oo,jim-sqlite3(>=0.75),jim-cgi(>=0.7),jim-binary(>=0.75),service-control(>=1.2),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.0.13),hmt(>=1.1.21),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),mongoose diff --git a/webif/cgi-bin/opkg.jim b/webif/cgi-bin/opkg.jim index e3fafec..d889a0e 100755 --- a/webif/cgi-bin/opkg.jim +++ b/webif/cgi-bin/opkg.jim @@ -10,14 +10,14 @@ cgi_input set cmd [cgi_get cmd update] proc opkg {cmd} { - puts ">>> opkg $cmd\r\n" + puts ">>> opkg $cmd" set bcmd "|/mod/webif/lib/bin/opkg $cmd" set fd [open $bcmd r] while {[gets $fd line] >= 0} { - puts "$line\r\n" + puts "$line" } close $fd - puts "\r\n" + puts "" } httpheader "text/plain" @@ -26,11 +26,12 @@ if {$cmd eq "upgrade"} { opkg update } opkg $cmd if {$cmd eq "update" || $cmd eq "upgrade"} { - puts "Updating package meta information\r\n" + puts "Updating package meta information" pkg fetchmeta - puts "Done.\r\n" - puts "Updating diagnostic meta information\r\n" + puts "Done." + puts "" + puts "Updating diagnostic meta information" pkg fetchdiagmeta - puts "Done.\r\n" + puts "Done." } diff --git a/webif/html/dedup/process.jim b/webif/html/dedup/process.jim index 87a6b4b..cf91bb1 100755 --- a/webif/html/dedup/process.jim +++ b/webif/html/dedup/process.jim @@ -17,8 +17,7 @@ proc dedupprocess {file} {{seen {}}} { set base [file tail [file rootname $file]] set syn [dedupnormalise [$ts get synopsis] [$ts get title]] # Escape special characters to create the filename. - regsub -all -- {[\/ &]} $syn "_" fn - regsub -all -- {[?]} $fn "" fn + set fn [system filename $syn] set stat ok if {[$ts inuse]} { diff --git a/webif/html/diag/diag.jim b/webif/html/diag/diag.jim index 0687670..a58686e 100755 --- a/webif/html/diag/diag.jim +++ b/webif/html/diag/diag.jim @@ -25,8 +25,10 @@ puts {