PluginProbe
CSS & JavaScript Toolbox / 11.2
CSS & JavaScript Toolbox v11.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | controllers/blocks-backups.php +1 -2 trunk11.2 View file →
@@ -45,10 +45,9 @@
45 45 */
46 46 public function createAction() {
47 47 $backupData = array();
48 48 // Get posted backup data.
49 - $backupName = filter_input(INPUT_GET, 'name', FILTER_UNSAFE_RAW);
50 - $backupData['name'] = is_string($backupName) ? sanitize_text_field($backupName) : '';
49 + $backupData['name'] = filter_input(INPUT_GET, 'name', FILTER_SANITIZE_STRING);
51 50 $backupRowIndex = filter_input(INPUT_GET, 'rowIndex', FILTER_SANITIZE_NUMBER_INT);
52 51 // Create new backup -- Data will be retruned along with new backup Id.
53 52 $backupData = $this->model->create($backupData);
54 53 $this->model->save();