Changeset 812202
- Timestamp:
- 11/29/2013 03:03:54 AM (12 years ago)
- Location:
- rockhoist-ratings
- Files:
-
- 7 added
- 2 edited
-
tags/1.2.3 (added)
-
tags/1.2.3/ajax_rate.js (added)
-
tags/1.2.3/ratings.css (added)
-
tags/1.2.3/readme.txt (added)
-
tags/1.2.3/rh-ratings.php (added)
-
tags/1.2.3/screenshot-1.png (added)
-
tags/1.2.3/sprites.png (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/rh-ratings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rockhoist-ratings/trunk/readme.txt
r794800 r812202 4 4 Requires at least: 3.6 5 5 Tested up to: 3.6.1 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 8 8 Rockhoist Ratings is a thumbs up/ thumbs down style rating widget for posts. … … 31 31 32 32 == Changelog == 33 34 = 1.2.3 = 35 * Additional security patching. 33 36 34 37 = 1.2.2 = -
rockhoist-ratings/trunk/rh-ratings.php
r794800 r812202 269 269 // generate the response 270 270 $response = json_encode( array( 'success' => true, 271 'countup' => rhb_count_ratings( array( 'post_ID' => $_POST['postID'], 'rating' => 'up') ),272 'countdown' => rhb_count_ratings( array( 'post_ID' => $_POST['postID'], 'rating' => 'down') ) ) );271 'countup' => rhb_count_ratings( array( 'post_ID' => mysql_real_escape_string(intval($_POST['postID'])), 'rating' => 'up') ), 272 'countdown' => rhb_count_ratings( array( 'post_ID' => mysql_real_escape_string(intval($_POST['postID'])), 'rating' => 'down') ) ) ); 273 273 274 274 // response output
Note: See TracChangeset
for help on using the changeset viewer.