diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-07-11 11:52:56 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-07-11 11:53:09 +0100 |
| commit | cc5ab399cc3c8f78158c8e3027cb0ecf038648dc (patch) | |
| tree | 54da92556607e9cae21cfbd440ed136b383b0b94 /app/Module/BatchUpdateModule.php | |
| parent | 1c2ce4bb435dee3d5672951797a6a66711c25938 (diff) | |
| download | webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.gz webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.bz2 webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.zip | |
Prepare to remove class Filter
Diffstat (limited to 'app/Module/BatchUpdateModule.php')
| -rw-r--r-- | app/Module/BatchUpdateModule.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Module/BatchUpdateModule.php b/app/Module/BatchUpdateModule.php index 0b75a33907..328bc521a5 100644 --- a/app/Module/BatchUpdateModule.php +++ b/app/Module/BatchUpdateModule.php @@ -22,6 +22,7 @@ use Fisharebest\Webtrees\Database; use Fisharebest\Webtrees\Family; use Fisharebest\Webtrees\Filter; use Fisharebest\Webtrees\GedcomRecord; +use Fisharebest\Webtrees\Html; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Media; @@ -391,9 +392,9 @@ class BatchUpdateModule extends AbstractModule implements ModuleConfigInterface public static function createSubmitButton($text, $xref, $action = '', $data = '') { return '<input class="btn btn-primary" type="submit" value="' . $text . '" onclick="' . - 'this.form.xref.value=\'' . Filter::escapeHtml($xref) . '\';' . - 'this.form.action.value=\'' . Filter::escapeHtml($action) . '\';' . - 'this.form.data.value=\'' . Filter::escapeHtml($data) . '\';' . + 'this.form.xref.value=\'' . Html::escape($xref) . '\';' . + 'this.form.action.value=\'' . Html::escape($action) . '\';' . + 'this.form.data.value=\'' . Html::escape($data) . '\';' . 'return true;"' . ($xref ? '' : ' disabled') . '>'; } |
