Changeset 3468600
- Timestamp:
- 02/24/2026 11:47:24 AM (5 weeks ago)
- Location:
- recognyze-client
- Files:
-
- 1 added
- 3 edited
-
assets/icon-128x128.png (added)
-
trunk/includes/utilities.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/recognyze-client.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recognyze-client/trunk/includes/utilities.php
r3464425 r3468600 1383 1383 $page_param = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; 1384 1384 if ( 'recognyze.txt' === $page_param ) { 1385 // Prevent any output before headers. 1386 if ( ob_get_level() ) { 1387 ob_clean(); 1388 } 1389 1390 header( 'Content-Type: text/plain' ); 1391 header( 'X-Robots-Tag: noindex' ); 1392 header( 'Cache-Control: no-cache, must-revalidate' ); 1393 1394 // Generate and serve the content. 1395 $content = wprc_generate_recognyze_file_content(); 1396 echo $content ? esc_html( $content ) : ''; // Show empty content if no data. 1385 wprc_serve_recognyze_txt_content(); 1397 1386 exit; 1398 1387 } … … 1462 1451 header( 'Cache-Control: no-cache, must-revalidate' ); 1463 1452 1464 // Generate and serve the content. 1453 // Generate and serve the content. Do not HTML-escape: recognyze.txt is plain text. 1465 1454 $content = wprc_generate_recognyze_file_content(); 1466 echo $content ? esc_html( $content ) : ''; // Show empty content if no data. 1455 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Plain text file; esc_html would corrupt quotes in name= values. 1456 echo $content ? $content : ''; 1467 1457 } 1468 1458 -
recognyze-client/trunk/readme.txt
r3464425 r3468600 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.3.4 76 Stable tag: 1.3.48 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 134 134 135 135 == Changelog == 136 137 = 1.3.48 = 138 * Fix: recognyze.txt no longer HTML-escapes the content name. The name value was incorrectly passed through esc_html() when serving the recognyze.txt file, causing double quotes to appear as " in the output. Serving now outputs plain text only; download and URL-served recognyze.txt both show correct name="..." values. 136 139 137 140 = 1.3.47 = … … 233 236 == Upgrade Notice == 234 237 238 = 1.3.48 = 239 Fix: recognyze.txt now shows content names with correct quotes (no more "). Recommended if you use or verify recognyze.txt. 240 235 241 = 1.3.47 = 236 242 WordPress.org compliance: Callback escaping, input sanitization for debug logging, and escape-late for echoed variables. Recommended for all users. -
recognyze-client/trunk/recognyze-client.php
r3464425 r3468600 4 4 * Plugin URI: https://www.recognyze.ai/publishers/wordpress/ 5 5 * Description: Dashboard for managing posts and submitting them to an external API. Your content powers AI – earn from it. Register your site, track AI usage and set your fee. 6 * Version: 1.3.4 76 * Version: 1.3.48 7 7 * Author: Recognyze.AI 8 8 * Author URI: https://recognyze.ai … … 24 24 25 25 // Plugin constants. 26 define( 'WPRC_VERSION', '1.3.4 7' ); // Plugin version check it is the same as above.26 define( 'WPRC_VERSION', '1.3.48' ); // Plugin version check it is the same as above. 27 27 define( 'WPRC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); // Plugin directory path. 28 28 define( 'WPRC_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // Plugin URL.
Note: See TracChangeset
for help on using the changeset viewer.