FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link. Remember
I remember
I am looking for an LTO tape library. Do you have one to spare?
Website Feedback
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 '+' sign in postsmon link
Author: Sem 
Date:   16-09-06 07:10

a '+' sign should be quted in portsmon links.
We have a number of ports which name contains '+'. And a browser treats portsmon likns wrong for these ports.

Reply To This Message
 
 Re: '+' sign in postsmon link
Author: Dan 
Date:   16-09-06 11:58

Interesting how browsers treat FreshPorts links that contain a + correctly. Go to http://beta.freshports.org/editors/?page=3 and click on editors/vim6+ruby

I suspect this may be a portsmon URL parsing issue. I'll have a chat with linimon.

--
The Man Behind The Curtain

Reply To This Message
 
 Re: '+' sign in postsmon link
Author: Sem 
Date:   16-09-06 12:15

A browser treats + in URL as a space. I think it should be changet to %2B

Reply To This Message
 
 Re: '+' sign in postsmon link
Author: Dan 
Date:   16-09-06 12:26

Sem wrote:

> A browser treats + in URL as a space. I think it should be
> changet to %2B

If that is true, why does this URL work correctly?

http://beta.freshports.org/editors/vim6+ruby/

I'm not being difficult regarding fixing this issue.

--
The Man Behind The Curtain

Reply To This Message
 
 Re: '+' sign in postsmon link
Author: Dan 
Date:   16-09-06 12:50

I did some tests with PHP. I see that parameters are different. My example http://beta.freshports.org/editors/vim6+ruby/ has vim6+ruby as part of the URL, not as a parmeter as in the PortsMon link.

I just added code to the BETA site so that category and port are passed to urlencode (http://ca.php.net/manual/en/function.urlencode.php) when used as part of the PortsMon URL.

Have a look please.

There are ten such ports:

devel/ace+tao
devel/kimwitu++
japanese/xemacs21-sumo-canna+wnn4
devel/libsigc++20
benchmarks/bonnie++
databases/postgresql-libpq++
editors/vim6+ruby
devel/c_c++_reference-i18n
chinese/xa+cv
lang/glibstdc++28

--
The Man Behind The Curtain

Reply To This Message
 
 Re: '+' sign in postsmon link
Author: Sem 
Date:   16-09-06 14:28

Looks like they all work fine now on beta.freshports.org. Thanks!

Reply To This Message
 
 Re: '+' sign in postsmon link
Author: Dan 
Date:   16-09-06 14:36

Now in production. cheers.

--
The Man Behind The Curtain

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.


Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.