I searched the forum for a fix for this, but did not find one. So please excuse me if this has already been addressed.
Searching two words with the search form that have a space between them (mad dog) results in a broken link for "Next Results".
I fixed this problem by editing the GT-Search.php short links file and the .htaccess file to to allow the space character. I also added the hyphen and underscore while I was in there.
After the change the next and previous links at the bottom of the search results are now working for two words separated by a space, hyphen or underscore.
Since the search query term is passed in the url maybe other forms of punctuation should be included if this is not a security risk.
Again, sorry if this has already been addressed in the upcoming release. This was on a clean install of 2.10.01.
Joined: Aug 29, 2004 Posts: 7485 Location: Arizona
Posted:
Tue Nov 13, 2007 7:02 pm
Personally, I had changed my Downloads search to use POST instead of GET, which would also work here. I HATE how FB put the search words in the URL. It just makes NO sense.
But, in the 2 - 3 years that I have been using this and supporting it the last two years, this is the first "complaint" raised about this. So, hopefully this, and other punctuation, will not be a big problem.
I'll look into this for our upcoming 2.20.00 release of RavenNuke...
Actually the search function is my editor's biggest beef with "nuke" sites. He expects the thing to work like Google. I really can't use Google search because it would pull a lot of unrelated content from the site since I have a few projects all being fed from the same domain. I may go to some other type of search script outside of the search module anyway. He is mainly looking for relavance based results. Any ideas would be welcome.
Just thought I should bring this up since it was causing some weirdness.
I really appreciate what the Raven team is doing here. Before I insalled this script I was getting hacked every week with an old patched version of Nuke. Now about 20 sql injectons are getting blocked a day. Awesome!
montego wrote:
Personally, I had changed my Downloads search to use POST instead of GET, which would also work here. I HATE how FB put the search words in the URL. It just makes NO sense.
But, in the 2 - 3 years that I have been using this and supporting it the last two years, this is the first "complaint" raised about this. So, hopefully this, and other punctuation, will not be a big problem.
I'll look into this for our upcoming 2.20.00 release of RavenNuke...
BTW, I opened up the query parameters to match some of the others for other modules:
query=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)
Notice the space at the end. The corresponding .htaccess is:
([/:\-\'{}()\,\._&a-zA-Z0-9+=\ ]*)
Note that the space must be "escaped".
I tried using [:punct:][:alnum:], but it ended up being too aggressive. I may tweak this some in coming versions....
BTW, also found that you have to also fix some query= rules in encyclopedia, downloads and web links.
Ouch on the encyclopedia and downloads. I'll check those out too. I really don't use downloads or the encyclopedia but I never know. Better to have them fixed and ready.
Thanks for checking this out and coming up with a better solution.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum