When trying to theme plone.org, the first letter 'p' gets clipped
Closed this issue · 3 comments
natea commented
I can theme drupal.org, but when I type in plone.org, it turns into "lone.org". I think Mike fixed this already, but I had to revert the fix, because it resulted in drupal.org not loading the images.
jeffd commented
I am not getting this error running the HEAD on Firefox 3.6.3 & Chromium Nightlies.
natea commented
This was fixed in StartController.py by changing this line:
self.url = self.url.lstrip('http://')
to this:
self.url = self.url.replace('http://','')
mikepk commented
Although technically http:// shouldn't appear unescaped in the URL (outside the initial protocol declaration) I've seen it happen. A more robust solution is to use a regex anchored to the beginning of the string, or
if self.url.startswith('http://'): self.url = self.url[7:]