Changeset 1489863
- Timestamp:
- 09/04/2016 09:46:49 PM (10 years ago)
- File:
-
- 1 edited
-
zbplayer/trunk/zbPlayer.admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zbplayer/trunk/zbPlayer.admin.php
r1489862 r1489863 123 123 // Business Logic 124 124 if (isset($_POST['action'])) { 125 if (!isset($_POST['_wpnonce']) ) {125 if (!isset($_POST['_wpnonce']) || !check_admin_referer('zbp-update_options')) { 126 126 die("There was a problem authenticating. Please log out and log back in"); 127 127 } 128 128 129 if (!check_admin_referer('zbp-update_options')) {130 die("There was a problem authenticating. Please log out and log back in");131 }132 133 129 if ($_POST['action'] == 'update') { 134 130 update_option( … … 174 170 update_option( 175 171 'zbp_collect_field', 176 isset($_POST['zbp_collect_field']) ? $_POST['zbp_collect_field']: ZBPLAYER_DEFAULT_COLLECT_FIELD172 isset($_POST['zbp_collect_field']) ? sanitize_text_field($_POST['zbp_collect_field']) : ZBPLAYER_DEFAULT_COLLECT_FIELD 177 173 ); 178 174
Note: See TracChangeset
for help on using the changeset viewer.