Changeset 3680121
- Timestamp:
- 09/03/2026 05:09:05 PM (3 months ago)
- Location:
- human2human-chess-duell
- Files:
-
- 19 added
- 2 edited
-
tags/1.11.1 (added)
-
tags/1.11.1/assets (added)
-
tags/1.11.1/assets/css (added)
-
tags/1.11.1/assets/css/chess-duell.css (added)
-
tags/1.11.1/assets/js (added)
-
tags/1.11.1/assets/js/app.js (added)
-
tags/1.11.1/assets/js/engine.js (added)
-
tags/1.11.1/human2human-chess-duell.php (added)
-
tags/1.11.1/includes (added)
-
tags/1.11.1/includes/class-chess-engine.php (added)
-
tags/1.11.1/languages (added)
-
tags/1.11.1/languages/human2human-chess-duell-de_DE-8b95a20e21550730e7b5557f56908c73.json (added)
-
tags/1.11.1/languages/human2human-chess-duell-de_DE.mo (added)
-
tags/1.11.1/languages/human2human-chess-duell-de_DE.po (added)
-
tags/1.11.1/languages/human2human-chess-duell-de_DE_formal-8b95a20e21550730e7b5557f56908c73.json (added)
-
tags/1.11.1/languages/human2human-chess-duell-de_DE_formal.mo (added)
-
tags/1.11.1/languages/human2human-chess-duell-de_DE_formal.po (added)
-
tags/1.11.1/languages/human2human-chess-duell.pot (added)
-
tags/1.11.1/readme.txt (added)
-
trunk/human2human-chess-duell.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
human2human-chess-duell/trunk/human2human-chess-duell.php
r3608279 r3680121 4 4 * Plugin URI: https://github.com/strYchni0x/chess-duell 5 5 * Description: Two people play chess online against each other - just share a link. Number of simultaneous games and lifetime configurable in the backend. Server-side rule validation (no cheating possible), no AI. Embed with the shortcode [chess_duell]. 6 * Version: 1.11. 06 * Version: 1.11.1 7 7 * Author: Florian Willnat 8 8 * License: GPL-2.0-or-later … … 16 16 } 17 17 18 define('CHESS_DUELL_VERSION', '1.11. 0');18 define('CHESS_DUELL_VERSION', '1.11.1'); 19 19 define('CHESS_DUELL_URL', plugin_dir_url(__FILE__)); 20 20 define('CHESS_DUELL_PATH', plugin_dir_path(__FILE__)); … … 337 337 /** Link zur Partie (für die Benachrichtigung). */ 338 338 function chess_duell_game_link($game) { 339 $base = !empty($game['page']) ? $game['page'] : home_url('/'); 339 $home = home_url('/'); 340 $base = !empty($game['page']) ? $game['page'] : $home; 341 // Sicherheit: In Benachrichtigungs-Mails nur seiteneigene URLs zulassen. Das 342 // page-Feld wird beim Erstellen einer Partie ungeprüft (nur esc_url_raw) 343 // übernommen; ohne diese Prüfung könnte eine fremde Domain untergeschoben 344 // werden und die Mail (vom vertrauenswürdigen Absender der Seite) zu einer 345 // Phishing-Seite verlinken. Bei fremdem Host auf die Startseite zurückfallen. 346 $base_host = wp_parse_url($base, PHP_URL_HOST); 347 $home_host = wp_parse_url($home, PHP_URL_HOST); 348 if (empty($base_host) || strcasecmp((string) $base_host, (string) $home_host) !== 0) { 349 $base = $home; 350 } 340 351 return add_query_arg('chess_game', rawurlencode($game['id']), $base); 341 352 } -
human2human-chess-duell/trunk/readme.txt
r3658536 r3680121 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.2 7 Stable tag: 1.11. 07 Stable tag: 1.11.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 75 75 == Changelog == 76 76 77 = 1.11.1 = 78 * Security: turn-notification e-mails now always link to your own site. The optional per-game return URL is restricted to the site's own host, so a crafted game can no longer point the notification link at an external (phishing) domain. Already-stored games are covered too. 79 77 80 = 1.11.0 = 78 81 * Internationalization: source strings are now English; a complete German translation (de_DE and de_DE_formal) is bundled.
Note:
See TracChangeset
for help on using the changeset viewer.