Prevent raw utf8 display

https://hummy.tv/forum/threads/webif-web-interface-1-4-x.7712/post-135917
This commit is contained in:
prpr 2020-10-19 16:05:12 +00:00 committed by df
parent 1b11be6827
commit 567d142613

View File

@ -26,6 +26,9 @@ if {[file isdirectory $file]} {
set new [string map {"\n" ""} [ set new [string map {"\n" ""} [
string trim [cgi_get "rename_$attr"]]] string trim [cgi_get "rename_$attr"]]]
set old [$ts get $attr] set old [$ts get $attr]
if {$attr eq "title" || $attr eq "synopsis"} {
set new "\025$new"
}
if {$new ne $old} { if {$new ne $old} {
if {$attr eq "guidance" || if {$attr eq "guidance" ||
[string length $new] > 0} { [string length $new] > 0} {