[MacPorts] #14067: livecheck.distname is not properly escaped in livecheck.regex

MacPorts trac at macosforge.org
Fri Jan 25 10:22:31 PST 2008


#14067: livecheck.distname is not properly escaped in livecheck.regex
-------------------------------------+--------------------------------------
 Reporter:  ryandesign at macports.org  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:  MacPorts base bugs                   
Component:  base                     |     Version:  1.7.0                                
 Keywords:                           |  
-------------------------------------+--------------------------------------
 `livecheck.distname` is not being properly escaped before being put into
 `livecheck.regex`. I noticed this problem while trying to update the
 livecheck for osxvnc, setting `livecheck.distname Vine Server(OSXvnc)`.
 With `livecheck.check sourceforge`, this results in the regex
 "`<title>Vine Server(OSXvnc) (.*) released.*</title>`" which is incorrect.
 The regex I wanted was "`<title>Vine Server\(OSXvnc\) (.*)
 released.*</title>`". There must be a Tcl function we can use which would
 properly escape a string for use in a regular expression, like
 [http://www.php.net/preg_quote preg_quote()] in php.

 Looking through all ports, I see that fixing this will break the livecheck
 in the portfiles for fusefs and spotlightfs, which currently assume this
 bug exists.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14067>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list