Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorAndrew Flegg <andrew@bleb.org>
Wed, 9 Jun 2010 23:23:57 +0000 (00:23 +0100)
committerAndrew Flegg <andrew@bleb.org>
Wed, 9 Jun 2010 23:23:57 +0000 (00:23 +0100)
package/src/org/maemo/hermes/engine/linkedin/api.py

index fe0c80f..882360a 100644 (file)
@@ -1,3 +1,4 @@
+import re
 import httplib
 import gnome.gconf
 from oauth import oauth
@@ -107,8 +108,8 @@ class LinkedInApi():
         def extract_public_url(node):
             tag = get_first_tag(node, 'site-standard-profile-request')
             if tag:
-                url = extract(tag, 'url')
-                return url.replace("&amp;", "&")
+                url = extract(tag, 'url').replace("&amp;", "&")
+                return re.sub('[?&](auth|trk)\w*=[^&]*', '', url)
         
         # look for errors
         errors = dom.getElementsByTagName('error')

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment