Changeset 3479512
- Timestamp:
- 03/10/2026 08:21:55 PM (3 weeks ago)
- Location:
- open-video/trunk
- Files:
-
- 3 edited
-
OpenVideoNamespace/Channels.php (modified) (3 diffs)
-
README.txt (modified) (2 diffs)
-
open-video.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
open-video/trunk/OpenVideoNamespace/Channels.php
r3463838 r3479512 34 34 ); 35 35 36 private static function openvideoplugin_is_cookie_allowed(string $name): bool { 37 $lower = strtolower($name); 38 if (isset(self::OPENVIDEOPLUGIN_ALLOWED_COOKIES[$lower])) { 39 return true; 40 } 41 // Allow ov_ch_auth_<integer> (dynamic channel auth cookie) 42 return (bool) preg_match('/^ov_ch_auth_\d+$/', $lower); 43 } 44 36 45 public static function openvideoplugin_get_channel_path() { 37 46 $path = get_option(self::OPENVIDEOPLUGIN_CHANNEL_PATH_OPTION, self::OPENVIDEOPLUGIN_DEFAULT_CHANNEL_PATH); … … 232 241 list($name, $value) = explode('=', $main_part, 2); 233 242 $name = trim($name); 234 if (! isset(self::OPENVIDEOPLUGIN_ALLOWED_COOKIES[strtolower($name)])) {243 if (!self::openvideoplugin_is_cookie_allowed($name)) { 235 244 continue; 236 245 } … … 388 397 $main_part = array_shift($cookie_parts); 389 398 list($name, $value) = explode('=', $main_part, 2); 390 if (!isset(self::OPENVIDEOPLUGIN_ALLOWED_COOKIES[strtolower($name)])) {399 if (!self::openvideoplugin_is_cookie_allowed($name)) { 391 400 continue; // not a supported cookie - skip 392 401 } -
open-video/trunk/README.txt
r3463838 r3479512 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.0 8 Stable tag: 1.4. 18 Stable tag: 1.4.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == Changelog == 29 = 1.4.2 = 30 * Support channel authentication cookie for password-protected channels 31 29 32 = 1.4.1 = 30 33 * Reverted 1.4.0 changes due to an issue affecting functionality -
open-video/trunk/open-video.php
r3463838 r3479512 16 16 * 17 17 * @link https://open.video/ 18 * @since 1.4. 118 * @since 1.4.2 19 19 * @package Open.Video 20 20 * … … 23 23 * Plugin URI: https://wordpress.org/plugins/open-video 24 24 * Description: Open.Video allows you to easily embed videos to your site from the Open.Video Network. 25 * Version: 1.4. 125 * Version: 1.4.2 26 26 * Requires at least: 6.1 27 27 * Requires PHP: 7.0 … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define('OPENVIDEOPLUGIN_VERSION', '1.4. 1');43 define('OPENVIDEOPLUGIN_VERSION', '1.4.2'); 44 44 45 45 global $openvideoplugin_regex;
Note: See TracChangeset
for help on using the changeset viewer.