Changeset 3252921
- Timestamp:
- 03/09/2025 07:00:40 PM (9 months ago)
- Location:
- xv-random-quotes/trunk
- Files:
-
- 8 edited
-
changelog.txt (modified) (1 diff)
-
inc/stray_manage.php (modified) (4 diffs)
-
inc/stray_new.php (modified) (2 diffs)
-
inc/stray_remove.php (modified) (2 diffs)
-
inc/stray_tools.php (modified) (5 diffs)
-
lib/class.constants.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
xv-random-quotes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
xv-random-quotes/trunk/changelog.txt
r3212536 r3252921 1 1 == XV Random Quotes == 2 = 1.41 = 3 Some bugfixes 4 2 5 = 1.40 = 3 6 Increases length of source -
xv-random-quotes/trunk/inc/stray_manage.php
r1475784 r3252921 12 12 if( $quotesoptions['stray_multiuser'] == false && !current_user_can('manage_options') ) 13 13 die('Access Denied'); 14 15 16 if ( !empty($_REQUEST['qa']) && !wp_verify_nonce($_POST['xv_random_quotes_tools'],'xv_random_quotes') ) 17 { 18 die('Access Denied. Invalid nonce'); 19 } 20 14 21 15 22 //decode and intercept … … 27 34 28 35 if(isset($_GET['qo'])){ 29 $orderby = $_GET['qo'];30 $quotesoptions['stray_quotes_order'] = $_GET['qo'];31 } 32 if(isset($_GET['qp']))$pages = $_GET['qp'];36 $orderby = sanitize_text_field($_GET['qo']); 37 $quotesoptions['stray_quotes_order'] = sanitize_text_field($_GET['qo']); 38 } 39 if(isset($_GET['qp']))$pages = sanitize_text_field($_GET['qp']); 33 40 34 41 if(isset($_GET['qr'])){ 35 42 $rows = $_GET['qr']; 36 $quotesoptions['stray_quotes_rows'] = $_GET['qr'];43 $quotesoptions['stray_quotes_rows'] = sanitize_text_field($_GET['qr']); 37 44 } 38 45 39 46 if(isset($_GET['qc'])){ 40 47 $categories = $_GET['qc']; 41 $quotesoptions['stray_quotes_categories'] = $_GET['qc'];48 $quotesoptions['stray_quotes_categories'] = sanitize_text_field($_GET['qc']); 42 49 } 43 50 44 51 if(isset($_GET['qs'])){ 45 $sort = $_GET['qs'];46 $quotesoptions['stray_quotes_sort'] = $_GET['qs'];52 $sort = sanitize_text_field($_GET['qs']); 53 $quotesoptions['stray_quotes_sort'] = sanitize_text_field($_GET['qs']); 47 54 } 48 55 49 56 /* zL: added: search keyword */ 50 57 // get search keyword, if any ('l' in 'ql' stands for 'look'); 51 $keyword = isset($_GET['ql']) ? $_GET['ql']: ''; // escaped later58 $keyword = isset($_GET['ql']) ? sanitize_text_field($_GET['ql']) : ''; // escaped later 52 59 53 60 $offset = ($pages - 1) * $rows; … … 132 139 <script src="<?php echo WP_STRAY_QUOTES_PATH ?>inc/stray_quicktags.js" type="text/javascript"></script> 133 140 <form name="quoteform" id="quoteform" method="post" action="<?php echo $_SERVER['REQUEST_URI'] ?>"> 141 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_manage'); ?> 134 142 <input type="hidden" name="qa" value="edit_save"> 135 143 <input type="hidden" name="qi" value="<?php echo $quoteID; ?>"> … … 490 498 $bulkurl = remove_querystring_var($bulkurl, 'qi'); 491 499 ?><form name="bulkform" id="bulkform" method="post" action="<?php echo $bulkurl ?>"> 500 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_manage'); ?> 492 501 <div class="tablenav"> 493 502 <div class="alignleft actions" style="margin-right:10px"> -
xv-random-quotes/trunk/inc/stray_new.php
r1475784 r3252921 12 12 if( $quotesoptions['stray_multiuser'] == false && !current_user_can('manage_options') ) 13 13 die('Access Denied'); 14 15 16 if ( !empty($_REQUEST['action']) && !wp_verify_nonce($_POST['xv_random_quotes_new'],'xv_random_quotes') ) 17 { 18 die('Access Denied. Invalid nonce'); 19 } 14 20 15 21 //decode and intercept … … 207 213 208 214 <p><input type="submit" name="save" class="button-primary" value="<?php _e('Add quote','stray-quotes') ?> »" /></p> 215 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_new'); ?> 209 216 </form></div> 210 217 -
xv-random-quotes/trunk/inc/stray_remove.php
r3212515 r3252921 16 16 //handle the post event 17 17 if(isset($_POST['do']) && sanitize_text_field($_POST['do'])) { 18 19 if ( !wp_verify_nonce($_POST['xv_random_quotes_remove'],'xv_random_quotes') ) 20 { 21 die('Access Denied. Invalid nonce'); 22 } 18 23 19 24 //update options … … 45 50 // the deactivation form ?> 46 51 <form method="post" action="<?php $_SERVER['REQUEST_URI'] ?>"> 52 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_remove'); ?> 47 53 <div class="wrap"> 48 54 <h2><?php _e('Remove and deactivate','stray-quotes') ?></h2> -
xv-random-quotes/trunk/inc/stray_tools.php
r1283940 r3252921 14 14 if(isset($_POST['do']) && sanitize_text_field($_POST['do'])) { 15 15 16 if ( !wp_verify_nonce($_POST['xv_random_quotes_tools'],'xv_random_quotes') ) 17 { 18 die('Access Denied. Invalid nonce'); 19 } 20 16 21 $post_do = sanitize_text_field($_POST['do']); 17 22 … … 170 175 <p class="submit"><input type="hidden" name="do" value="Update" /> 171 176 <input type="submit" name="boptions" value="<?php _e('Apply bookmarklet options', 'stray-quotes'); ?>"> 177 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_tools'); ?> 172 178 </p></form><?php } ?> 173 179 … … 197 203 <p class="submit"> <input type="hidden" name="do" value="Update" /><input type="submit" name="enable" value="<?php _e('Toggle shortcodes', 'stray-quotes'); ?>"> 198 204 </p> 205 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_tools'); ?> 199 206 </form></blockquote> 200 207 … … 206 213 <p class="submit"> <input type="hidden" name="do" value="Update" /><input type="submit" name="submit" value="<?php _e('Reset index', 'stray-quotes'); ?>"> 207 214 </p> 215 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_tools'); ?> 208 216 </form></blockquote> 209 217 … … 217 225 <p class="submit"> <input type="hidden" name="do" value="Update" /><input type="submit" name="resetsettings" value="<?php _e('Reset Settings', 'stray-quotes'); ?>"> 218 226 </p> 227 <?php wp_nonce_field('xv_random_quotes','xv_random_quotes_tools'); ?> 219 228 </form></blockquote> 220 229 -
xv-random-quotes/trunk/lib/class.constants.php
r3212536 r3252921 16 16 17 17 const PLUGIN_OPTIONS = 'stray_quotes_options'; 18 const VERSION = '1.4 0';18 const VERSION = '1.41'; 19 19 const DEFAULT_CATEGORY_OPTION = 'stray_default_category'; 20 20 const DEFAULT_RELOAD_TEXT_OPTION = 'stray_loader'; -
xv-random-quotes/trunk/readme.txt
r3212536 r3252921 5 5 Requires at least: 2.3 6 6 Tested up to: 6.7 7 Stable tag: 1.4 07 Stable tag: 1.41 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
xv-random-quotes/trunk/xv-random-quotes.php
r3212536 r3252921 5 5 Author: Xavi Ivars 6 6 Author URI: http://xavi.ivars.me/ 7 Version: 1.4 07 Version: 1.41 8 8 License: http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.