projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GoogleTranslate.php
[Pman.Core]
/
GoogleTranslate.php
diff --git
a/GoogleTranslate.php
b/GoogleTranslate.php
index
0dcdc8d
..
cbd6755
100644
(file)
--- a/
GoogleTranslate.php
+++ b/
GoogleTranslate.php
@@
-31,7
+31,9
@@
class Pman_Core_GoogleTranslate extends Pman
if (empty($pc['googlekey'])) {
$this->jerr("Google API Key not configured");
}
-
+ if (!strlen(trim($_REQUEST['text']))) {
+ $this->jok("");
+ }
$param = array(
'key' => $pc['googlekey'],
'q' => rawurlencode($_REQUEST['text']),