Reply To: > character converted to & gt ; in Custom CSS Code field

forums forums Circle Flip Support > character converted to & gt ; in Custom CSS Code field Reply To: > character converted to & gt ; in Custom CSS Code field


Omar
Keymaster
#1959

Hey apprique,

I have found the solution to this, added it to the update, but I already applied the fix on your installation:

On file /functions.php
I changed
<?php echo cr_get_option('custom_css','') ?>
<?php echo cr_get_option("google_code",''); ?>
<?php echo cr_get_option("custom_js",''); ?>

with
<?php echo htmlspecialchars_decode(cr_get_option('custom_css','')) ?>
<?php echo htmlspecialchars_decode(cr_get_option("google_code",'')); ?>
<?php echo htmlspecialchars_decode(cr_get_option("custom_js",'')); ?&gt
;

on lines 1576 and 1584 – 1585

Also on file creiden-framework/inc/options-interface.php
Changed
$output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '">' . esc_textarea($val) . '</textarea>
With
$output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '">' . $val . '</textarea>

Sorry if this took some amount of time.
Cheers.