| @@ -118,8 +118,10 @@ | ||
| 118 | 118 | $custom_css = get_option( 'wplng_custom_css' ); |
| 119 | 119 | |
| 120 | 120 | if ( ! empty( $custom_css ) && is_string( $custom_css ) ) { |
| 121 | 121 | $custom_css = wp_strip_all_tags( $custom_css ); |
| 122 | + // Prevent breaking out of the <style> context | |
| 123 | + $custom_css = str_replace( '</style', '', $custom_css ); | |
| 122 | 124 | echo '<style id="wplingua-inline-styles">' . $custom_css . '</style>'; |
| 123 | 125 | } |
| 124 | 126 | } |
| 125 | 127 | |