@@ -43,7 +43,7 @@ function onShow() {
4343
4444 $ pluginTpl = new tpl ;
4545 $ pluginTpl ->newTemplate ('templates/system_config_dns_ca_edit.htm ' );
46- include 'lib/lang/ ' .$ _SESSION ['s ' ]['language ' ].'_system_config.lng ' ;
46+ include 'lib/lang/ ' .$ app -> functions -> check_language ( $ _SESSION ['s ' ]['language ' ]) .'_system_config.lng ' ;
4747 $ pluginTpl ->setVar ($ wb );
4848 $ ca_id = $ app ->functions ->intval ($ _GET ['id ' ]);
4949 if (isset ($ _GET ['action ' ]) && ($ _GET ['action ' ] == 'edit ' ) && $ ca_id > 0 ) {
@@ -59,12 +59,12 @@ function onShow() {
5959 } elseif (isset ($ _GET ['action ' ]) && ($ _GET ['action ' ] == 'save ' ) && $ ca_id > 0 ) {
6060 $ pluginTpl ->setVar ('edit_record ' , 0 );
6161 $ pluginTpl ->setVar ('id ' , $ ca_id );
62- $ pluginTpl ->setVar ('ca_name ' , $ _POST ['ca_name ' ]);
63- $ pluginTpl ->setVar ('ca_issue ' , $ _POST ['ca_issue ' ]);
64- $ pluginTpl ->setVar ('ca_wildcard ' , $ _POST ['ca_wildcard ' ]);
65- $ pluginTpl ->setVar ('ca_critical ' , $ _POST ['ca_critical ' ]);
66- $ pluginTpl ->setVar ('ca_iodef ' , $ _POST ['ca_iodef ' ]);
67- $ pluginTpl ->setVar ('active ' , $ _POST ['active ' ]);
62+ $ pluginTpl ->setVar ('ca_name ' , $ app -> functions -> htmlentities ( $ _POST ['ca_name ' ]) );
63+ $ pluginTpl ->setVar ('ca_issue ' , $ app -> functions -> htmlentities ( $ _POST ['ca_issue ' ]) );
64+ $ pluginTpl ->setVar ('ca_wildcard ' , $ app -> functions -> htmlentities ( $ _POST ['ca_wildcard ' ]) );
65+ $ pluginTpl ->setVar ('ca_critical ' , $ app -> functions -> htmlentities ( $ _POST ['ca_critical ' ]) );
66+ $ pluginTpl ->setVar ('ca_iodef ' , $ app -> functions -> htmlentities ( $ _POST ['ca_iodef ' ]) );
67+ $ pluginTpl ->setVar ('active ' , $ app -> functions -> htmlentities ( $ _POST ['active ' ]) );
6868 } else {
6969 $ pluginTpl ->setVar ('edit_record ' , 0 );
7070 }
0 commit comments