Changeset 63100 for branches/6.0/src/wp-includes/kses.php
- Timestamp:
- 08/06/2026 07:38:52 PM (2 months ago)
- File:
-
- 1 edited
-
branches/6.0/src/wp-includes/kses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/wp-includes/kses.php
r54763 r63100 2471 2471 // Allow CSS calc(). 2472 2472 $css_test_string = preg_replace( '/calc\(((?:\([^()]*\)?|[^()])*)\)/', '', $css_test_string ); 2473 if ( null === $css_test_string ) { 2474 continue; 2475 } 2476 2473 2477 // Allow CSS var(). 2474 2478 $css_test_string = preg_replace( '/\(?var\(--[a-zA-Z0-9_-]*\)/', '', $css_test_string ); 2479 if ( null === $css_test_string ) { 2480 continue; 2481 } 2475 2482 2476 2483 // Check for any CSS containing \ ( & } = or comments, 2477 2484 // except for url(), calc(), or var() usage checked above. 2478 $allow_css = !preg_match( '%[\\\(&=}]|/\*%', $css_test_string );2485 $allow_css = 0 === preg_match( '%[\\\(&=}]|/\*%', $css_test_string ); 2479 2486 2480 2487 /**
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)