Sanitize slash problem
-
Hello,
When i fill in a destination url. Then WP is removing the slashes (%2F) from my url.
When this happens url’s aren’t working anymore.
Can somebody help me please?
In the file form-process.php i find this:
$destination = sanitize_text_field($_POST['destination']);update_post_meta($this_post_id, 'coupon_aff_url', esc_url( $destination) );And in template submit i find these code:
<p><label for="destination"><?php _e('Destination URL', 'junkie'); ?></label><input type="text" name="destination" id="destination" value="<?php echo $destination; ?>" placeHolder="http://www.mysite.com/?affid=123" ></p>Example affiliate url = domain.com/markt/?tt=12345_12_123456_&r=%2Fwonen-deco%2Fbloemen-decoratie%2Fkunstbloemen
The topic ‘Sanitize slash problem’ is closed to new replies.