diff options
| author | Phil Burton <phil@d3r.com> | 2019-06-11 15:09:17 +0100 | 
|---|---|---|
| committer | Phil Burton <phil@d3r.com> | 2019-06-11 15:09:17 +0100 | 
| commit | d8ffff6171b433b4e0a1b0849c060c9e1051734f (patch) | |
| tree | 41799e4bf7f66eb856d185a6a6b1041a2bc85c8d /src | |
| parent | 77d70c27da45ef10bc901a0975a5f24a578665c9 (diff) | |
Stop piping pastebin stderr to null
Diffstat (limited to 'src')
| -rw-r--r-- | src/Etym.php | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/Etym.php b/src/Etym.php index 10e22d7..8be0a99 100644 --- a/src/Etym.php +++ b/src/Etym.php @@ -121,8 +121,9 @@ class Etym          if (strlen($truncated) >= $MAX_CHARACTERS) {              // Create that povjee link.              // Capitalise the first char of the input. -            $input   = ucfirst($input); +            $input = ucfirst($input);              $defAndUrl = "\"$input\"" . "\n\n" . $definition . "\n\n" . "[Original at: $url]"; +              $safeDef = escapeshellarg($defAndUrl);              $pasteBinCmd = "echo $safeDef | " . $this->pasteCmd; | 
