WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/31/2008 04:01:30 AM (13 years ago)
Author:
azaozz
Message:

Latest TinyMCE, has new load options and bugfixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/spellchecker/classes/PSpellShell.php

    r6632 r8512  
    104104
    105105        if(preg_match("#win#i", php_uname()))
    106             return $this->_config['PSpellShell.aspell'] . " -a --lang=". $lang . " --encoding=utf-8 -H < " . $this->_tmpfile . " 2>&1";
     106            return $this->_config['PSpellShell.aspell'] . " -a --lang=". escapeshellarg($lang) . " --encoding=utf-8 -H < " . $this->_tmpfile . " 2>&1";
    107107
    108         return "cat ". $this->_tmpfile ." | " . $this->_config['PSpellShell.aspell'] . " -a --encoding=utf-8 -H --lang=". $lang;
     108        return "cat ". $this->_tmpfile ." | " . $this->_config['PSpellShell.aspell'] . " -a --encoding=utf-8 -H --lang=". escapeshellarg($lang);
    109109    }
    110110}
Note: See TracChangeset for help on using the changeset viewer.