FluxBB Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

Announcement

FluxBB 1.4.2 and FluxBB 1.2.23 are released, fixing a critical vulnerability in PHP's unserialize() function. Please upgrade ASAP.

#1 2009-07-03 01:02:25

Plume
Member
Registered: 2009-07-03
Posts: 2

[Feature] "generate_navlinks" may generate links relative to PUN_ROOT

Hi,

We are building a home page and having generate_navlinks() prefixing navigation links it generates by PUN_ROOT ("/forum") lets the possibility to call the function on the home page. As far as I have looked into the your code, it should not change any behaviour.

It might be usefull to others so here I am with a regex style© patch:

In include/functions.php@generate_navlinks()

307,60s/href="/href="'.PUN_ROOT.'/g

Offline

#2 2009-07-03 01:46:53

Plume
Member
Registered: 2009-07-03
Posts: 2

Re: [Feature] "generate_navlinks" may generate links relative to PUN_ROOT

Hum, is it a good idea to prefix *all* href referencing .php files by PUN_ROOT ?

Offline

#3 2009-07-03 06:57:34

Franz
aka lie2815 (Developer)
From: Germany
Registered: 2008-05-13
Posts: 2,545
Website

Re: [Feature] "generate_navlinks" may generate links relative to PUN_ROOT

Not a bug report. Moved.


http://www.fluxbb.de - Deutschsprachiges FluxBB-Supportforum
http://www.develophp.org - My thoughts, ideas and notes about PHP web development.

"As code is more often read than written it's really important to write clean code."

Offline

Board footer

Powered by FluxBB 1.4.2