Browse Source

Merge pull request 'df-unquote_html-patch' (#2) from df/sweeper:df-unquote_html-patch into master

master
af123 2 years ago
parent
commit
ae55e5ae0d
  1. 6
      webif/plugin/sweeper/save.jim
  2. 6
      webif/plugin/sweeper/test.jim

6
webif/plugin/sweeper/save.jim

@ -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 }

6
webif/plugin/sweeper/test.jim

@ -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!"

Loading…
Cancel
Save