Beagle-Plugin 1.1.0 bugfix
- From: Florian Echtler <floe butterbrot org>
- To: dashboard-hackers gnome org
- Subject: Beagle-Plugin 1.1.0 bugfix
- Date: Fri, 04 Jul 2008 12:17:39 +0200
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
--- 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]