Changeset 2567958
- Timestamp:
- 07/20/2021 08:50:16 AM (5 years ago)
- Location:
- redbrick
- Files:
-
- 6 edited
- 8 copied
-
tags/1.0.1 (copied) (copied from redbrick/trunk)
-
tags/1.0.1/includes (copied) (copied from redbrick/trunk/includes)
-
tags/1.0.1/includes/comment-validator.class.php (modified) (1 diff)
-
tags/1.0.1/includes/core.class.php (modified) (2 diffs)
-
tags/1.0.1/index.php (copied) (copied from redbrick/trunk/index.php)
-
tags/1.0.1/library (copied) (copied from redbrick/trunk/library)
-
tags/1.0.1/license.txt (copied) (copied from redbrick/trunk/license.txt)
-
tags/1.0.1/readme.txt (copied) (copied from redbrick/trunk/readme.txt) (2 diffs)
-
tags/1.0.1/redbrick.php (copied) (copied from redbrick/trunk/redbrick.php) (2 diffs)
-
tags/1.0.1/uninstall.php (copied) (copied from redbrick/trunk/uninstall.php)
-
trunk/includes/comment-validator.class.php (modified) (1 diff)
-
trunk/includes/core.class.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/redbrick.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
redbrick/tags/1.0.1/includes/comment-validator.class.php
r2567045 r2567958 77 77 $this->websiteURL = $comment_data['comment_author_url']; 78 78 $this->IP = ( isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '' ); 79 $this->content['raw'] = str ipslashes($comment_data['comment_content'] );79 $this->content['raw'] = str_replace( '\\', '', $comment_data['comment_content'] ); 80 80 } 81 81 -
redbrick/tags/1.0.1/includes/core.class.php
r2567045 r2567958 103 103 switch ( $validation_id ) { 104 104 case 'spam': 105 $this->goBack( );105 $this->goBack( $comment_data['comment_post_ID'] ); 106 106 break; 107 107 … … 132 132 /** 133 133 * @since 1.0 134 * @param int $post_id 134 135 */ 135 private function goBack( ) {136 private function goBack( $post_id ) { 136 137 if ( isset( $_SERVER['HTTP_REFERER'] ) ) { 137 138 $redirect_url = $_SERVER['HTTP_REFERER']; 138 139 } 139 140 else { 140 $post = get_post( $ comment_data['comment_post_ID']);141 $post = get_post( $post_id ); 141 142 $redirect_url = ( $post ? get_permalink( $post ) : home_url() ); 142 143 } -
redbrick/tags/1.0.1/readme.txt
r2567045 r2567958 7 7 Tested up to: 5.7.2 8 8 Requires PHP: 7.0 9 Stable tag: 1.0 9 Stable tag: 1.0.1 10 10 License: GPLv3 11 11 License URI: https://opensource.org/licenses/GPL-3.0 … … 49 49 == Changelog == 50 50 51 = 1.0.1 (20 July 2021) = 52 53 Fixed a PHP notice and improved the detection of hyperlinks with multiple attributes. 54 55 51 56 = 1.0 (19 July 2021) = 52 57 -
redbrick/tags/1.0.1/redbrick.php
r2567045 r2567958 4 4 * Plugin URI: https://wordpress.org/plugins/redbrick/ 5 5 * Description: Simple anti-spam plugin for WordPress blogs. 6 * Version: 1.0 6 * Version: 1.0.1 7 7 * Requires: 5.5 8 8 * Author: Luigi Cavalieri … … 13 13 * 14 14 * @package RedBrick 15 * @version 1.0 15 * @version 1.0.1 16 16 * @copyright Copyright 2021 Luigi Cavalieri. 17 17 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0 -
redbrick/trunk/includes/comment-validator.class.php
r2567045 r2567958 77 77 $this->websiteURL = $comment_data['comment_author_url']; 78 78 $this->IP = ( isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '' ); 79 $this->content['raw'] = str ipslashes($comment_data['comment_content'] );79 $this->content['raw'] = str_replace( '\\', '', $comment_data['comment_content'] ); 80 80 } 81 81 -
redbrick/trunk/includes/core.class.php
r2567045 r2567958 103 103 switch ( $validation_id ) { 104 104 case 'spam': 105 $this->goBack( );105 $this->goBack( $comment_data['comment_post_ID'] ); 106 106 break; 107 107 … … 132 132 /** 133 133 * @since 1.0 134 * @param int $post_id 134 135 */ 135 private function goBack( ) {136 private function goBack( $post_id ) { 136 137 if ( isset( $_SERVER['HTTP_REFERER'] ) ) { 137 138 $redirect_url = $_SERVER['HTTP_REFERER']; 138 139 } 139 140 else { 140 $post = get_post( $ comment_data['comment_post_ID']);141 $post = get_post( $post_id ); 141 142 $redirect_url = ( $post ? get_permalink( $post ) : home_url() ); 142 143 } -
redbrick/trunk/readme.txt
r2567045 r2567958 7 7 Tested up to: 5.7.2 8 8 Requires PHP: 7.0 9 Stable tag: 1.0 9 Stable tag: 1.0.1 10 10 License: GPLv3 11 11 License URI: https://opensource.org/licenses/GPL-3.0 … … 49 49 == Changelog == 50 50 51 = 1.0.1 (20 July 2021) = 52 53 Fixed a PHP notice and improved the detection of hyperlinks with multiple attributes. 54 55 51 56 = 1.0 (19 July 2021) = 52 57 -
redbrick/trunk/redbrick.php
r2567045 r2567958 4 4 * Plugin URI: https://wordpress.org/plugins/redbrick/ 5 5 * Description: Simple anti-spam plugin for WordPress blogs. 6 * Version: 1.0 6 * Version: 1.0.1 7 7 * Requires: 5.5 8 8 * Author: Luigi Cavalieri … … 13 13 * 14 14 * @package RedBrick 15 * @version 1.0 15 * @version 1.0.1 16 16 * @copyright Copyright 2021 Luigi Cavalieri. 17 17 * @license https://opensource.org/licenses/GPL-3.0 GPL v3.0
Note: See TracChangeset
for help on using the changeset viewer.