The regex in views.inc+33 appears to try to remove remaining %n arguments after all the substitutions are done. However, it has two problems.

First, I believe that \\/ should just be \/ as it's looking for a / and the single backslash is all that's needed to escape it. In the attached patch, I changed the substitutable character from slash to a comma, to fix the regex and make it easer to read.

Second, I think that you really want to find /%n and %n, so the / should be optional.

CommentFileSizeAuthor
#1 165354.patch626 bytesdouggreen
viewsargs.patch606 bytesdouggreen

Comments

douggreen’s picture

StatusFileSize
new626 bytes

Here's the same patch, but one that applies properly (^M on end-of-lines messed me up).

merlinofchaos’s picture

Status: Needs review » Fixed

Committed. Also the file format too.

Anonymous’s picture

Status: Fixed » Closed (fixed)