Forum OpenACS Q&A: URL's with "~" return error Invalid URL

I had already posted this in the bug tracker before I realized that I should have posted here first to ask if anyone has encountered the problem.

https://openacs.org/bugtracker/openacs/bug?bug%5fnumber=2012

I am using Openacs 5.1.0 and it seems the validation for URLs in ad_form will return an error if your URL has a slur "~" in it.

Collapse
Posted by Chris Davies on
It is a bug, I'm reasonably sure.  There are other URLs that don't pass -- I made some notes on the bug ticket along with the regexp that I use locally and notes for a 'better' regexp from regexp.org.

Personally, I think the larger regexp is better.  The other issue at hand is that a few of the freehosting companies allow _ in the hostname which is invalid as per the RFC, but works on most machines.

Worst case you can patch it locally as I did.