Skip to content

Commit

Permalink
[libraries][legacy][request] - fix php 7.1 warning not numeric (jooml…
Browse files Browse the repository at this point in the history
…a#19710)

* [libraries][legacy][request] - fix php 7.1 warning not numeric

* dry
  • Loading branch information
alikon authored and mbabker committed Mar 25, 2018
1 parent b56a9d0 commit f96b984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/legacy/request/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ public static function checkToken($method = 'post')
*/
protected static function _cleanVar($var, $mask = 0, $type = null)
{
$mask = (int) $mask;

// If the no trim flag is not set, trim the variable
if (!($mask & 1) && is_string($var))
{
Expand Down

0 comments on commit f96b984

Please sign in to comment.