1
alain01
bbcode and url
  • 4/6 14:51

  • alain01

  • Just can't stay away

  • Posts: 509

  • Since: 2003/6/20


Hi,
I noticed a thing on the URL bbcode
Is it only for a standard URL ?

I explain the problem here:
I want to write only the absolute link from the root of the website

Example:
The URL is:
Quote:but I want to write
Quote:
/modules/xmnews/article.php?news_id = 35

BBCode turns this link into
Quote:
modules/xmnews/article.php?news_id=35
(Without "/")
so the link is bad.

A solution ?
- I should use an html link with an href = "" ?
- This BBCode only works for a standard URL ?
- Others?

2
alain01
Re: bbcode and url
  • 4/6 15:45

  • alain01

  • Just can't stay away

  • Posts: 509

  • Since: 2003/6/20


The source code given by my browser, for the last link is :
Quote:
<a href="http:///modules/xmnews/article.php?news_id=35" rel="noopener external" title="">


Note (from Greg)

/class/module.textsanitizer.php
may be @ line 410 (Replace XoopsCodes with their equivalent HTML formatting)

The url should not return a [http] word key if there is no http (or https) in the initial string

3
geekwright
Re: bbcode and url

Nothing new, here. This has been that way for a long time.

The url xoopscode tag expects a fully qualified URL. Partials lead to security exposures very quickly. There is no one size fits all way to resolve scheme-less URLs. XOOPS can for example work fine in a directory under a domain.

There is a siteurl tag which always prepends the full XOOPS_URL with a trailing slash. That is useful when transferring content between a prototype and a production system without changes.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

82 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 82


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits