Beagle-Plugin 1.1.0 bugfix

Florian Echtler <[email protected]>
Newsgroups gmane.comp.gnome.dashboard.devel
Message-ID <1215166659.10133.24.camel@pancake>
Hello,

I've noticed that on Firefox 3, some pages (e.g. sourceforge.net) cause
a bunch of "Failed to write metadata" errors. The reason is that beagle
also gets some "javascript:" URLs passed to index. I've added a tiny
check to filter these out; now it works fine again.

Yours, Florian
-- 
0666 - Filemode of the Beast

_______________________________________________
Dashboard-hackers mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dashboard-hackers
beagleOverlay.js.patch (text/x-patch, 589 B)
--- old/beagleOverlay.js	2008-07-04 12:08:54.000000000 +0200
+++ new/beagleOverlay.js	2008-07-04 12:02:12.000000000 +0200
@@ -427,6 +427,10 @@
 
 	// Tokenize the url
 	var loc = page.location;
+	if (loc.protocol == "javascript:") {
+		log("skipping javascript..");
+		return;
+	}
 	var url_tokenized = loc.host + " " + loc.port + " " + loc.pathname + " " + loc.hash + " " + loc.search;
 	url_tokenized = url_tokenized.replace(/\./g, " ").replace(/\//g, " ").replace(/&/g, " ").replace (/\+/g, " ").replace (/=/g, " ").replace(/%../g, " ");
 	meta.push("t:beagle:inuri=" + url_tokenized);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.