diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-03-07 22:47:32 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-03-07 22:47:32 -0500 |
commit | 12b5aec2985ece32ee640f7d90feaaac464f795d (patch) | |
tree | 6d7df2a6258680e5ca901b95c145a721a8b01e81 /doc | |
parent | 7559c7b3ae382191e8d4acde8ddd9e2323edb9a2 (diff) |
response
Diffstat (limited to 'doc')
-rw-r--r-- | doc/forum/Exception:_Unknown_function___96__this__39___.mdwn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn b/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn index 94de18ceb..7db12c34a 100644 --- a/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn +++ b/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn @@ -14,3 +14,10 @@ What might be causing this exception and how I might go about debugging exceptio > could switch to [[google_search_plugin|plugins/google]]. --[[Joey]] >> Thanks, Joey. With your help I was able to figure out what was wrong. It's a fun little bug (or feature): the title of my wiki had string `$this` in title and that's what was causing the omega binary to choke. My wiki's title was inserted without escaping into the query template used by omega. Omega treated `$this` in the title as a function name and threw an exception because no such function was defined. To avoid this behavior, I used an html entity in the title, so `$this` became `$this`. I don't think that the wiki title should be inserted into the template without escaping - it can produce an error that's not trivial to debug. If users want to modify the html in the title, they should be editing respective templates, not typing html in the wiki title input. What do you think? --[[dkobozev]] + +>>> Sounds like a bug in omega, and one that probably would affect other +>>> users of omega too. Ikiwiki could work around it by pre-escaping +>>> data before passing it to xapian. I have not quite managed to reproduce it though; +>>> tried setting a page title to '$this' and 'foo $this'. +>>> That's with version 1.0.18 of omega. +>>> --[[Joey]] |