Bug Url code problem

  • Thread starter Redbelly98
  • Start date

Redbelly98

Staff Emeritus
Science Advisor
Homework Helper
12,037
125
If you type in a url that ends with a ")", the ")" gets omitted by the code that generates a link.

For example, typing

[noparse]http://en.wikipedia.org/wiki/Commutator_(electric)[/noparse] [Broken]

then results in the following bad link

[noparse]http://en.wikipedia.org/wiki/Commutator_(electric [Broken]) [/noparse]

In the final post, this appears as
http://en.wikipedia.org/wiki/Commutator_(electric [Broken])

The ")" should get included in the URL:

[noparse]http://en.wikipedia.org/wiki/Commutator_(electric) [/noparse]

which would become a valid link in the post:
http://en.wikipedia.org/wiki/Commutator_(electric)


Here's the thread where this happened:
https://www.physicsforums.com/showthread.php?p=2093336&posted=1#post2093336
 
Last edited by a moderator:

Related Threads for: Url code problem

  • Posted
Replies
4
Views
4K
  • Posted
Replies
2
Views
2K
  • Posted
Replies
1
Views
2K
  • Posted
Replies
4
Views
3K
  • Posted
Replies
9
Views
7K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving

Hot Threads

Top