xml parse error in RSS feed URL
-
I found that RSS feed URL is output without using CER (character entity references) which causes XML parse error in a certain case.
I request to fix this bug.1. I use wordpress with a MIME-type ‘application/xhtml+xml,’ thus many browser fail to parse xml if a url includes ‘&’ without using CER.
2. I sometimes use the search form on my wordpress site to find old my article. The results of it includes RSS feed with search key words, e.g., https://url/wordpress/?s=search&feed=rss2
3. After all my wordpress cannot return any search result without parse error.I believe that the RSS feed URL should be https://url/wordpress?s=search&feed=rss2
I found temporal result.
In the functionget_search_link
andget_search_feed_link
at the file ‘link-templete.php,’ I added the following code:$link = str_replace('&','&',$link); $link = str_replace('&','&',$link);
after calling the function
apply_filters
.I request to fix this bug. Thank you.
P.S.
At first, I try to fix the functionbuild_query
.
However, this function used to search comment in dashboard and my fix induces another bug, that releases a comment_status attribute.
- The topic ‘xml parse error in RSS feed URL’ is closed to new replies.