Created
November 29, 2024 04:51
-
-
Save kharissulistiyo/6f70e7d0f0c075029a4e4156bb8c9561 to your computer and use it in GitHub Desktop.
Patch PHP Local File Inclusion vulnerability
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $style = isset( $settings['pricing_table_style'] ) ? $settings['pricing_table_style'] : 'style-1'; | |
| if (!in_array($style, array('style-1', 'style-2', 'style-3', 'style-4'))) { | |
| $style = 'style-1'; | |
| } | |
| ?> | |
| <div <?php echo $element->get_render_attribute_string( 'pricing_attr' ) ?>> | |
| <div <?php echo $element->get_render_attribute_string( 'inner_attr' ) ?>> | |
| <?php ube_get_template( "elements/pricing-table/{$style}.php", array( | |
| 'element' => $element, | |
| 'settings' => $settings, | |
| ) ); ?> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment