Changeset 2418972
- Timestamp:
- 11/15/2020 02:06:06 PM (5 years ago)
- Location:
- upstream/trunk
- Files:
-
- 5 edited
-
includes.php (modified) (1 diff)
-
includes/class-up-comments.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/single-project/details.php (modified) (1 diff)
-
upstream.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
upstream/trunk/includes.php
r2417603 r2418972 1 1 <?php 2 define('UPSTREAM_VERSION', '1.38. 3');2 define('UPSTREAM_VERSION', '1.38.4'); 3 3 4 4 global $upstream_addon_requirements; -
upstream/trunk/includes/class-up-comments.php
r2417454 r2418972 293 293 $user_id = get_current_user_id(); 294 294 295 $comment_content = stripslashes( sanitize_textarea_field($_POST['content']));295 $comment_content = stripslashes(wp_kses_post($_POST['content'])); 296 296 297 297 $item_title = isset($_POST['item_title']) ? sanitize_text_field($_POST['item_title']) : ''; … … 379 379 } 380 380 381 $item_id = (int)$_POST['item_id']; 381 // could be alnum ID 382 $item_id = sanitize_text_field($_POST['item_id']); 382 383 383 384 // Check if the project exists. … … 411 412 $user_id = get_current_user_id(); 412 413 413 $comment = new Comment(stripslashes( sanitize_textarea_field( $_POST['content'])), $project_id, $user_id);414 $comment = new Comment(stripslashes(wp_kses_post( $_POST['content'])), $project_id, $user_id); 414 415 $comment->parent_id = (int)$_POST['parent_id']; 415 416 $comment->created_by->ip = preg_replace('/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR']); -
upstream/trunk/readme.txt
r2417603 r2418972 5 5 Tested up to: 5.5 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.38. 37 Stable tag: 1.38.4 8 8 License: GPL-3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 142 142 The format is based on [Keep a Changelog](http://keepachangelog.com) 143 143 and this project adheres to [Semantic Versioning](http://semver.org). 144 145 = [1.38.4] - 2020-11-15 = 146 * Fixed comment posting bug 147 * Fixed removal of newlines in comments 144 148 145 149 = [1.38.3] - 2020-11-13 = -
upstream/trunk/templates/single-project/details.php
r2417454 r2418972 70 70 <?php if (upstream_override_access_field(true, UPSTREAM_ITEM_TYPE_PROJECT, $project_id, null, 0, 'start', UPSTREAM_PERMISSIONS_ACTION_VIEW) && 71 71 upstream_override_access_field(true, UPSTREAM_ITEM_TYPE_PROJECT, $project_id, null, 0, 'end', UPSTREAM_PERMISSIONS_ACTION_VIEW)): ?> 72 <span><?php echo esc_html($projectTimeframe);?></span>72 <span><?php echo $projectTimeframe; /* already sanitized */ ?></span> 73 73 <?php else: ?> 74 74 <span class="label up-o-label" style="background-color:#666;color:#fff">(hidden)</span> -
upstream/trunk/upstream.php
r2417603 r2418972 5 5 * Author: UpStream 6 6 * Author URI: https://upstreamplugin.com 7 * Version: 1.38. 37 * Version: 1.38.4 8 8 * Text Domain: upstream 9 9 * Domain Path: /languages
Note: See TracChangeset
for help on using the changeset viewer.