Skip to content

Commit

Permalink
Parameters are now HTML decoded higher up, don't need to do it here a…
Browse files Browse the repository at this point in the history
…ny more
  • Loading branch information
DaveRandom committed May 22, 2016
1 parent 84329b0 commit 2ef9d2d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Chat/Plugin/EvalCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ public function __construct(ChatClient $chatClient, HttpClient $httpClient) {
}

private function normalizeCode($code) {
$code = domdocument_load_html($code, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD)
->textContent;

if (strpos($code, '<?php') === false && strpos($code, '<?=') === false) {
$code = "<?php {$code}";
}
Expand Down

0 comments on commit 2ef9d2d

Please sign in to comment.