Source URL with slash at the end
-
Hi.
The Source URL
/blog/2012/12/20/i-draw-a-new-year/
is not working, but/blog/2012/12/20/i-draw-a-new-year
is okay.I’ve spent about 2 hours for debug and found this
A slash is cut out from the passed
$url
and the query inside the method$url->get_url()
works incorrectly:
SELECT * FROM wp_redirection_items WHERE match_url='/blog/2012/12/20/i-draw-a-new-year' OR match_url='regex'
instead of
SELECT * FROM wp_redirection_items WHERE match_url='/blog/2012/12/20/i-draw-a-new-year/' OR match_url='regex'
Could you explain why should use the
Red_Url_Match
class if$wpdb->prepare
is sanitize the passed value?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Source URL with slash at the end’ is closed to new replies.