src/js/utils.js
changeset 852 eefb64f74a3f
parent 840 ac66e2240e1e
child 870 2c025db10a10
--- a/src/js/utils.js	Fri Apr 06 17:15:48 2012 +0200
+++ b/src/js/utils.js	Fri Apr 06 19:00:00 2012 +0200
@@ -182,10 +182,7 @@
 
 /** issue a call to an url shortener and return the shortened url */
 IriSP.shorten_url = function(url) {
-  if (IriSP.config.shortener.hasOwnProperty("shortening_function"))
-    return IriSP.config.shortener.shortening_function(url);
-    
-  return url;
+  return encodeURIComponent(url);
 };