Merge pull request 'prpr-patch-rename-utf8' (#20) from prpr/webif:prpr-patch-rename-utf8 into master

Reviewed-on: hummypkg/webif#20
This commit is contained in:
af123 2020-10-19 22:02:38 +00:00
commit e3f7a2b738
1 changed files with 3 additions and 0 deletions

View File

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