Skip to content

Commit

Permalink
Merge pull request #5178 from bolt/fix/escape-useragent
Browse files Browse the repository at this point in the history
Strip tags from useragent.
  • Loading branch information
GwendolenLynch committed Apr 14, 2016
2 parents 10bb9fe + cc2a300 commit 0814141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storage/Entity/Authtoken.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function getUseragent()
*/
public function setUseragent($useragent)
{
$this->useragent = substr($useragent, 0, 128);
$this->useragent = substr(strip_tags($useragent), 0, 128);
}

/**
Expand Down

0 comments on commit 0814141

Please sign in to comment.