Solving the URL Code Problem with Parentheses

  • Context: Bug 
  • Thread starter Thread starter Redbelly98
  • Start date Start date
Redbelly98
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Messages
12,179
Reaction score
186
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]

then results in the following bad link

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

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

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:
Physics news on Phys.org

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
0
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
29
Views
6K