Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline BonzoFestoon  
#1 Posted : Tuesday, March 14, 2017 3:03:12 PM(UTC)
BonzoFestoon


Rank: YAF Camper

Reputation:

Joined: 5/23/2016(UTC)
Posts: 12
United States
Location: Charlotte, NC

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Why does this link work:
http://yetanotherforum.net/forum/search?search=test

But this one does not?
http://yetanotherforum.net/forum/search?search=test+error

If someone could please point me in the direction to look in the source.

We recent did a mass clean up of posts in our forum (deleted about 3500 posts). However, there are were a good number of the posts indexed on the search engines. Instead of going to the login page, I modified the forum to generate some search words from the slug after the topic or message id. It works great except for when the slug has the word "error" in it.

in posts.ascx.cs > page_load event, I am doing something like this:
Code:

// in case topic is deleted or not existent
if (_topic == null || PageContext.PageTopicID == 0)
{
    //YafBuildLink.RedirectInfoPage(InfoMessage.TopicDeleted); // better than before, but not good enuf
    var url = General.GetSafeRawUrl();
    var topic = RemoveStopwords(url);
    YafBuildLink.Redirect(ForumPages.search, "search={0}", topic);
}


For now, I am filtering the words "error" and "errors".

There is no problem if the user enters the word "error" in the search box, but if the word "error" is in the search query string param, it seems to lose its mind. Any help would be appreciated.

P.S. The word "installation" also seems to break it. I really need to find the code that is causing this so I can cover all cases. Thanks!

Edited by user Tuesday, March 14, 2017 3:08:23 PM(UTC)  | Reason: Found out about another word.

Sponsor
Offline tha_watcha  
#2 Posted : Thursday, March 16, 2017 9:57:47 AM(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 3/6/2010(UTC)
Posts: 3,541
Germany

Thanks: 70 times
Was thanked: 1117 time(s) in 953 post(s)
This issue is caused by the urlrewriter config. Only the two words error and install cause this problem. I commited the changes to fix the issue. you can apply the canges to your config file via 0e3c9b3d163ce97179628318cc30d8366a9f6a2f
thanks 1 user thanked tha_watcha for this useful post.
BonzoFestoon on 3/16/2017(UTC)
Offline BonzoFestoon  
#3 Posted : Thursday, March 16, 2017 10:24:36 AM(UTC)
BonzoFestoon


Rank: YAF Camper

Reputation:

Joined: 5/23/2016(UTC)
Posts: 12
United States
Location: Charlotte, NC

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Ha! Thanks for the fix! It was driving me crazy! What are the odds I would find those two words within 5 minutes? I need to go and play the lottery!


Fix is confirmed on my site. Thanks again!

Edited by user Thursday, March 16, 2017 10:40:01 AM(UTC)  | Reason: Not specified

Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error