Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'w51_MDL-37283_m23_spell' of git://github.com/skodak/moo…

…dle into MOODLE_23_STABLE
  • Loading branch information...
commit ca0cbfd4db9c79218a72684e777208d00a4a0af0 2 parents 185eff0 + a324376
Dan Poltawski danpoltawski authored
2  lib/editor/tinymce/tiny_mce/3.5.1.1/plugins/spellchecker/changelog.txt
... ... @@ -1,3 +1,5 @@
  1 +Version 2.0.6.1 (2012-11-16)
  2 + Fixed security issue with google spellchecker.
1 3 Version 2.0.6 (2011-09-29)
2 4 Fixed incorrect position of suggestion menu.
3 5 Fixed handling of mispelled words with no suggestions in PSpellShell engine.
2  lib/editor/tinymce/tiny_mce/3.5.1.1/plugins/spellchecker/classes/GoogleSpell.php
@@ -51,6 +51,8 @@ function &getSuggestions($lang, $word) {
51 51 }
52 52
53 53 function &_getMatches($lang, $str) {
  54 + $lang = preg_replace('/[^a-z\-]/i', '', $lang); // Sanitize, remove everything but a-z or -
  55 + $str = preg_replace('/[\x00-\x1F\x7F]/', '', $str); // Sanitize, remove all control characters
54 56 $server = "www.google.com";
55 57 $port = 443;
56 58 $path = "/tbproxy/spell?lang=" . $lang . "&hl=en";

0 comments on commit ca0cbfd

Please sign in to comment.
Something went wrong with that request. Please try again.