Skip to main content Help Control Panel

 

English «   Need Help «  

Colon in a URL results in blank page

Owen Charlotte -- on Feb. 19 2007, from Staffordshire, United Kingdom
Save the cheerleader, save the world

New YACS user here with a bit of a showstopper...

I'm just starting to evaluate YACS 7.1 as an intranet replacement but I've encountered a bit of a problem. If I go to any URL that contains a colon in the string (e.g. /yacs/versions/list.php?anchor=article:9) then two things happen:

1. The colon gets URL encoded (/yacs/versions/list.php?anchor=article%3A9)

2. A blank page results

Is this something peculiar to our installation or is this a recognised bug in YACS?

We're using a LAMP setup (CentOS, Apache 2.0.52, PHP 5.1.4, MySQL 4.1.20) and I've ran the upgrade scripts to make sure we're up-to-date.

Bernard Paquesfrom nearby-an-airport
Associate, 8372 posts

on Feb. 19 2007


While the encoding is ok, on my side I have the following error message, which is a bug:

Fatal error: Undefined class name 'cache' in /home/yetanoth/www/yacs/versions/list.php on line 118

To fix this the right solution is to edit versions/list.php and to insert a line to include the cache library, as follows:

// common definitions and initial processing
include_once '../shared/global.php';
include_once 
'../shared/surfer.php';
include_once 
'../shared/cache.php';
include_once 
'versions.php';


This will be made available with next release, thank you for your feed-back.

Bernard Paquesfrom nearby-an-airport
Associate, 8372 posts

on Feb. 19 2007


Of course, your nick name has been added to the list of YACS testers for this script...

Owen Charlottefrom Staffordshire, United Kingdom
3 posts

on Feb. 19 2007


Bernard, what a wonderful response time you have! Thank you for the fix and I will of course repay you by testing the script when I next have access to that server.

I love open-source.

Owen Charlottefrom Staffordshire, United Kingdom
3 posts

inspired from Bernard on Feb. 20 2007


Bernard:

I applied this patch to our test server and after a restart of Apache it worked wonderfully.

Thank you.

Bernard Paquesfrom nearby-an-airport
Associate, 8372 posts

on Feb. 20 2007


Good to know this has been fixed. Thanks for the feed-back, and for your interest in YACS.