pike.git
/
lib
/
modules
/
Search.pmod
/
Filter.pmod
/
Word.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Search.pmod/Filter.pmod/Word.pmod:1:
// This file is part of Roxen Search // Copyright © 2001 Roxen IS. All rights reserved. //
-
// $Id: Word.pmod,v 1.
4
2001/08/
08
15
:
12
:
03
noring
Exp $
+
// $Id: Word.pmod,v 1.
5
2001/08/
14
17
:
29
:
56
js
Exp $
inherit Search.Filter.HTML; constant contenttypes = ({ "application/msword", "application/vnd.ms-word" }); constant fields = ({ "body", "title", "keywords"}); Output filter(Standards.URI uri, string|Stdio.File data, string content_type) { Output res=Output();
pike.git/lib/modules/Search.pmod/Filter.pmod/Word.pmod:21:
f->close(); if(r != sizeof(data)) error("Failed to write data for %O (returned %O, not %O)\n", fn, r, sizeof(data)); string text = my_popen(({ combine_path(__FILE__, "../../../../bin/wvWare"), "-c", "utf-8", "-x", combine_path(__FILE__, "../wvHtml.xml"), fn }));
-
rm(fn);
+
if(!
rm(fn)
)
+
werror("Search: Failed to remove temporary file: %s\n", fn)
;
return ::filter(uri, text, "text/html", ([]), "utf-8"); } string _sprintf() { return "Search.Filter.Word"; }