Roundup Tracker - Issues

Message8392

Author cmeerw
Recipients cmeerw
Date 2025-06-02.11:14:39
Message-id <1748862879.56.0.459520705705.issue2551406@roundup-tracker.org>
In-reply-to
In cgi/client.py we have:

        # determine if view is oktmpl|errortmpl. If so assign the
        # right one to the view parameter. If we don't have alternate
        # templates, just leave view alone.
        if (view and view.find('|') != -1):
            # we have alternate templates, parse them apart.
            (oktmpl, errortmpl) = view.split("|", 2)

Presumably, the last line should be:

            (oktmpl, errortmpl) = view.split("|", 1)

to avoid a ValueError exception when there is more than one "|".

This can be triggered by something like

  ?%40template=forgotten%7c%7x

as a query parameter.
History
Date User Action Args
2025-06-02 11:14:39cmeerwsetrecipients: + cmeerw
2025-06-02 11:14:39cmeerwsetmessageid: <1748862879.56.0.459520705705.issue2551406@roundup-tracker.org>
2025-06-02 11:14:39cmeerwlinkissue2551406 messages
2025-06-02 11:14:39cmeerwcreate