" being repalced with "

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/22/2009 10:10:27 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

" being replaced with "

While using this site to try to figure out an answer to a question, I typed "image gallery" (quotes included) into the search box. When the results were returned, the text in the search box had been converted to "image gallery"

7/23/2009 6:56:26 AM
Gravatar
Total Posts 18439

Re: " being repalced with "

Hi Gerry,

You don't need to wrap quotes around search terms.

We can't echo the raw user input into the page, we have to html encode it for security reasons, otherweise there would be vulnerabilities to cross site scripting attacks.

Best,

Joe 

7/23/2009 12:24:08 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: " being repalced with "

Joe,

I did that because I was searching for the phrase. It seems that the search defaults to a logical OR between terms, which often returns too many results. Can boolean logic be used?

7/23/2009 12:29:44 PM
Gravatar
Total Posts 18439

Re: " being repalced with "

I see you are right, the quotes are needed for boolean AND searches. I will add special handling to put the quotes back after we html encode the input.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.