Changeset 672
- Timestamp:
- 11/22/2011 09:48:15 PM (6 months ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/transposh.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh.php
r669 r672 1206 1206 $sl = 'auto'; 1207 1207 if (isset($_GET['sl'])) $sl = $_GET['sl']; 1208 $q = @urlencode($_GET['q']);1208 $q = urlencode(stripslashes($_GET['q'])); 1209 1209 if (!$q) return; // avoid unneeded curling 1210 1210 $url = 'http://translate.google.com/translate_a/t?client=a&q=' . $q . '&tl=' . $tl . '&sl=' . $sl; … … 1261 1261 list($source, $trans) = $this->database->fetch_translation($p, $tl); 1262 1262 if (!$trans) { 1263 $q .= '&q=' . urlencode( $p);1263 $q .= '&q=' . urlencode(stripslashes($p)); 1264 1264 } else { 1265 1265 // holds cached results … … 1329 1329 for ($j = 0; $j < $i; $j++) { 1330 1330 if (!isset($r[$j])) { 1331 $_POST["tk$k"] = transposh_utils::base64_url_encode( $_GET['q'][$j]); // stupid, but should work1331 $_POST["tk$k"] = transposh_utils::base64_url_encode(stripslashes($_GET['q'][$j])); // stupid, but should work 1332 1332 $_POST["tr$k"] = $jsonout->results[$j]; 1333 1333 $k++;
Note: See TracChangeset
for help on using the changeset viewer.
