Bug found in "bug.pm" module (and suggested bugfix)

View: New views
1 Messages — Rating Filter:   Alert me  

Bug found in "bug.pm" module (and suggested bugfix)

by Santiago Gallego Rodrigo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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.

_______________________________________________
Gnump3d-devel mailing list
Gnump3d-devel@...
http://lists.gnu.org/mailman/listinfo/gnump3d-devel
LightInTheBox - Buy quality products at wholesale price!