Ticket #14067 (closed defect: fixed)
livecheck.distname is not properly escaped in livecheck.regex
| Reported by: | ryandesign@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts base bugs |
| Component: | base | Version: | 1.7.0 |
| Keywords: | Cc: | ||
| Port: |
Description
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 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.
Change History
Note: See
TracTickets for help on using
tickets.

