This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | AdrianP |
|---|---|
| Recipients | AdrianP |
| Date | 2008年07月09日.21:36:56 |
| SpamBayes Score | 0.017244978 |
| Marked as misclassified | No |
| Message-id | <1215639420.18.0.00968952650069.issue3330@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The webbrowser module seems to treat URLs containing the "|" character differently based on whether the browser is already running or not. For instance, consider the following python script: import webbrowser url = "http://foo.com/bar.html?var=x|y|z" webbrowser.open(url) If you run this script while the browser is already running (so that webbrowser.open creates a new tab) this behaves as you would expect, with the given URL as an address. However, if a browser is not already running, when webbrowser.open creates it, it seems to interpret the "|" as a seperator character, so that the browser will open with THREE tabs, one open to "http://foo.com/bar.html?var=x", one to "http://y" and one to "http://z". This is clearly a bug, webbrowser module should be smart enough to escape the "|" character if the browser is interpreting that line differently. This happens in Linux with Python 2.5 and Firefox 3.0. Not sure if it happens with anything else. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年07月09日 21:37:00 | AdrianP | set | spambayes_score: 0.017245 -> 0.017244978 recipients: + AdrianP |
| 2008年07月09日 21:37:00 | AdrianP | set | spambayes_score: 0.017245 -> 0.017245 messageid: <1215639420.18.0.00968952650069.issue3330@psf.upfronthosting.co.za> |
| 2008年07月09日 21:36:59 | AdrianP | link | issue3330 messages |
| 2008年07月09日 21:36:57 | AdrianP | create | |