The token !argument (ie !1) is not being substituted in the global text area.

CommentFileSizeAuthor
#1 views-sub-bang-arg-1235814-1.patch486 bytesrecrit

Comments

recrit’s picture

Status: Active » Needs review
StatusFileSize
new486 bytes

the attached patch adds the substitution to the function _build_arguments().

dawehner’s picture

Status: Needs review » Needs work

See the other code which generates a "! placeholder".

      $tokens['!' . $count] = isset($this->view->args[$count - 1]) ? strip_tags(html_entity_decode($this->view->args[$count - 1])) : '';

So you should better apply security on $arg as well.

dawehner’s picture

Status: Needs work » Fixed

Commited a proper version of your patch to 6.x-3.x and 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.