gnump3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnump3d-devel] Bug found in "bug.pm" module (and suggested bugfix)


From: Santiago Gallego Rodrigo
Subject: [Gnump3d-devel] Bug found in "bug.pm" module (and suggested bugfix)
Date: Tue, 8 Apr 2008 14:11:27 +0000 (GMT)

Hi all,

I don't know how active is this list, because it seems that has not been any message in the last months, but I'll give it a try.

I think I've found a minor bug in most of the plugins, in the wantsPath function. I found it while using a previous version (2.9.9.1) but it still appears in the CVS version.

The problem I first found is that the function wantsPath in the bug.pm module matched the url 'http://myserver/Bugge%20Wesseltoft' and launched the bug report page. Then I realized that module is deprecated but the same "bug" appears in other not deprecated modules (copying.pm, info.pm, now.pm...)
 
I've solved this issue by modifying the modules files this way (note the dot in the regular _expression_):
 
$ diff bug.pm bug.pm.orig
91c91
<     if ( $path =~ /^\/bug\/.*/i )
---
>     if ( $path =~ /^\/bug\/*/i )
 
I now this is not the best solution because it does not remove the problem completely (there can still be some false matches) but this tiny patch would alleviate it very much.

Thanks in advance,
Santi




¿Con Mascota por primera vez? - Sé un mejor Amigo
Entra en Yahoo! Respuestas.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]