df-unquote_html-patch #2

Merged
af123 merged 1 commits from :df-unquote_html-patch into master 2020-06-03 11:29:59 +00:00
2 changed files with 2 additions and 10 deletions

View File

@ -34,11 +34,7 @@ if {$dir eq "" || $dir eq $root} {
}
}
set data [string map {
& &
&lt; <
&gt; >
} [cgi_get data "-"]]
set data [cgi_unquote_html [cgi_get data "-"]]
if {$data eq "-" || $data eq ""} {
if {[file exists $cf]} { file delete $cf }

View File

@ -10,11 +10,7 @@ set dryrun [cgi_get dryrun 1]
set cf "/tmp/sweepertest.cf"
set data [string map {
&amp; &
&lt; <
&gt; >
} [cgi_get data "-"]]
set data [cgi_unquote_html [cgi_get data "-"]]
if {$data eq "-" || $data eq ""} {
puts "No data sent!"