Permalink
Browse files

Adding missing system special variable sanitization in components whe…

…n converting to an expression.
  • Loading branch information...
1 parent 8684270 commit b9874843a73583cfc005eb6eba30a46232a1e2b7 @zyxist zyxist committed Dec 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Opt/Instruction/Component.php
@@ -382,7 +382,7 @@ public function processSystemVar($opt)
throw new Opt_Instruction_Exception('Component error: invalid use of $'.implode('.',$opt).': no active component.');
}
list($variable, $format) = $this->_stack->top();
- $format->assign('name', $opt[2]);
+ $format->assign('name', '\''.$opt[2].'\'');
return $format->get('component:get');
} // end processSystemVar();

0 comments on commit b987484

Please sign in to comment.