• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Automatic parsing of links

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Some of our users are posting links like www.domain.com/user and forgetting to put the http:// prefix on. They are not even using the [url] tags, but are relying on the automatic parsing feature of JForum. However, when this is parsed by JForum, it results in an error, as the software seems to think that the address is located within the host environment, and the address is parsed as /jforum/posts/list/www.domain.com/user

Is there any way to correct this, so that it will automatically be parsed as if there were an http:// prefix there? Or would that cause something else to break? Is this just a case of teaching the users to make proper use of the [url] tags?
[originally posted on jforum.net by jedkantos]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the regular expression in the file bb_config.xml. In version 2.1.8, it looks correct:



Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome, thanks Rafael, I've passed that on to our admins.
[originally posted on jforum.net by jedkantos]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!