Loading...
 
Skip to main content

Features / Usability


Ampersands in page names

I've been involved with a websiteQuestion using ))TikiWiki(( 1.7.x for quite a while and due to a hard drive failure, we had to rebuild the site. As part of the rebuild, we installed 1.8.5 and one of the problems I ran into in reloading content is that page names with ampersands in them generate an "Invalid variable name" error message.

I've been playing around with a local copy of it and I found that if I change the line:

$patterns['vars'] = "/^[-_a-zA-Z0-9]*$/"; // for variable keys

to:

$patterns['vars'] = "/^[-_a-zA-Z0-9]*$&/"; // for variable keys

in tiki-setup_base.php, the problem goes away.

My question is if I make this change to the real site, am I opening it up to attacks or potentially causing any other problems?

Thanks.

Matt

Hi,

Yes and No is the answer as it depends on what features you are actually using and the permissions giving to anonymous and registered users etc etc etc

By allowing & as a parameter you all extra variables to be passed through the address bar, which could allow someone to gain extra access to your site and potentially the server.

I would consider a page renaming session & is not a very good character to pass as a pagename with it being using to seperate parameters on the URL line.

Damian
http://tikihost.netQuestion


That's pretty much what I suspected.

Thanks,

Matt