Skip to content

Commit

Permalink
Remove str_replace() on url
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Apr 28, 2019
1 parent 9d6e2a9 commit df06368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/ShadowComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function toArray()
{
return [
'id' => $this->id,
'message' => str_replace('/', '\/', $this->message),
'message' => $this->message,
'translated' => \Yii::t('phpbenchmarks', 'translated.2000'),
'type' => (new ShadowCommentType($this->getType()))->toArray()
];
Expand Down

0 comments on commit df06368

Please sign in to comment.