# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -345,12 +345,23 @@
     if (!link) {
       return;
     }
-
+    if(!link.indexOf){
+      link.prototype.indexOf = function(obj){
+       for(var i=0; i<this.length; i++) {
+        if(this[i]==obj){
+          if (i != -1) {
+            link = link.substr(0, i);
+          }
+        }
+       }
+      }
+    }
+    else {
     var index = link.indexOf('?');
     if (index != -1) {
       link = link.substr(0, index);
     }
-
+    }
     return link;
   }
 
