[seed] Importer should only include files as JavaScript files if they end in .js



commit a85c0360d45d82def1b164ba6e329f5e771dc1a8
Author: Robert Carr <racarr svn gnome org>
Date:   Tue Apr 21 18:13:39 2009 -0400

    Importer should only include files as JavaScript files if they end in .js
---
 libseed/seed-importer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libseed/seed-importer.c b/libseed/seed-importer.c
index e32d98b..c55068c 100644
--- a/libseed/seed-importer.c
+++ b/libseed/seed-importer.c
@@ -656,7 +656,7 @@ seed_importer_search (JSContextRef ctx,
 	      if (mentry[i] == '.')
 		mentry[i] = '\0';
 	    }
-	  if (!strcmp (mentry, prop))
+	  if (!strcmp (mentry, prop) && g_str_has_suffix (entry, ".js"))
 	    {
 	      JSObjectRef ret;
 	      



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]