sanyaade-speechtools / delphi-museum-project

Automatically exported from code.google.com/p/delphi-museum-project
0 stars 0 forks source link

Single quote/apostrophe in search box yields error #175

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
• What steps will reproduce the problem?
1. Type a string including a single quote mark in the search box.
2. Hit <return>

• What is the expected output? 
Either search results or a message saying I can't use single quotes in my 
search criteria.

• What do you see instead?
Fatal error: Call to a member function getMessage() on a non-object in 
/users/pahma/apache2/http-
pahma/htdocs/delphi/libs/ontology/ontoServices.php on line 366

• What browser and operating system are you using?
Mac OS X 10.5.7 / Safari 4.0.1 (5530.18)
  and
Mac OS X 10.5.7 / Firefox 3.5

• Note: 
A single quote all by itself does not cause this error.
Any number of single quotes all by themselves do not cause this error.
Single quotes used around a string do not cause this error.

• The error seems only to happen when either or both of these conditions are 
met:
1) a non-space character appears before the initial single quote;
2) a non-space character appears after the last single quote used.

Original issue reported on code.google.com by michaelb...@gmail.com on 3 Jul 2009 at 2:11

GoogleCodeExporter commented 9 years ago

Original comment by michaelb...@gmail.com on 3 Jul 2009 at 7:41

GoogleCodeExporter commented 9 years ago

Original comment by michaelb...@gmail.com on 4 Jul 2009 at 1:30

GoogleCodeExporter commented 9 years ago
Fixed the worst of this, although the query is not handling the search quite 
right.
Also, if a quote gets through to the results page, the remove function is 
broken.

Original comment by LudicrousResearcher@gmail.com on 6 Jul 2009 at 9:14

GoogleCodeExporter commented 9 years ago

Original comment by michaelb...@gmail.com on 7 Jul 2009 at 5:14