tracker r1693 - in branches/indexer-split: . src/trackerd
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1693 - in branches/indexer-split: . src/trackerd
- Date: Tue, 17 Jun 2008 10:54:03 +0000 (UTC)
Author: mr
Date: Tue Jun 17 10:54:03 2008
New Revision: 1693
URL: http://svn.gnome.org/viewvc/tracker?rev=1693&view=rev
Log:
* src/trackerd/tracker-crawler.c: (path_should_be_ignored): Do
UTF-8 validity check here instead of later on when we have wasted
more time processing files and folders.
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/trackerd/tracker-crawler.c
Modified: branches/indexer-split/src/trackerd/tracker-crawler.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-crawler.c (original)
+++ branches/indexer-split/src/trackerd/tracker-crawler.c Tue Jun 17 10:54:03 2008
@@ -558,6 +558,11 @@
if (g_str_has_prefix (path, g_get_tmp_dir ())) {
return TRUE;
}
+
+ if (!g_utf8_validate (path, -1, NULL)) {
+ g_message ("Ignoring path:'%s', not valid UTF-8", path);
+ return TRUE;
+ }
basename = g_path_get_basename (path);
ignore = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]