]> git.pld-linux.org Git - packages/ajax-spell.git/blame - ajax-spell-fixes.patch
- new
[packages/ajax-spell.git] / ajax-spell-fixes.patch
CommitLineData
aeddbd16
ER
1diff -u ../pspell_comp.php ./pspell_comp.php
2--- ../pspell_comp.php 2005-06-24 15:32:02.000000000 +0300
3+++ ./pspell_comp.php 2005-06-24 15:38:15.000000000 +0300
4@@ -44,9 +44,9 @@
5
6 if(!defined('ASPELL_BIN')) define('ASPELL_BIN','aspell');
7
8-define(PSPELL_FAST,1); # Fast mode (least number of suggestions)
9-define(PSPELL_NORMAL,2); # Normal mode (more suggestions)
10-define(PSPELL_BAD_SPELLERS,3); # Slow mode (a lot of suggestions) )
11+define('PSPELL_FAST',1); # Fast mode (least number of suggestions)
12+define('PSPELL_NORMAL',2); # Normal mode (more suggestions)
13+define('PSPELL_BAD_SPELLERS',3); # Slow mode (a lot of suggestions) )
14
15 function pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1'){
16 return new Pspell($language, $spelling, $jargon, $encoding);
17@@ -120,23 +120,23 @@
18 function _prepareArgs(){
19 $this->args = '';
20
21- if($this->$language){
22- $this->args .= ' --lang='.escapeshellarg($language);
23- }else{
24+ if ($this->language) {
25+ $this->args .= ' --lang='.escapeshellarg($this->language);
26+ } else {
27 return false; // no lang no spell
28 }
29
30 #FIXME how to support spelling?
31
32- if($this->$jargon){
33- $this->args .= ' --jargon='.escapeshellarg($jargon);
34+ if ($this->jargon){
35+ $this->args .= ' --jargon='.escapeshellarg($this->jargon);
36 }
37
38- if($this->$encoding){
39- $this->args .= ' --encoding='.escapeshellarg($encoding);
40+ if($this->encoding){
41+ $this->args .= ' --encoding='.escapeshellarg($this->encoding);
42 }
43
44- switch ($this->mode){
45+ switch ($this->mode) {
46 case PSPELL_FAST:
47 $this->args .= ' --sug-mode=fast';
48 break;
49diff -u ../spell_checker.php ./spell_checker.php
50--- ../spell_checker.php 2005-06-24 15:32:02.000000000 +0300
51+++ ./spell_checker.php 2005-06-24 15:48:17.000000000 +0300
52@@ -38,6 +38,7 @@
53 *************************************************************/
54
55 //user configurable list of allowed HTML tags. Thanks to Jake Olefsky for this little addition.
56+// FIXME with register_globals = on security risk (glen)
57 if(empty($allowed_html)) $allowed_html = '<p><a><br><b><i><img><strong><small><ul><li>';
58
59 //if pspell doesn't exist, then include the pspell wrapper for aspell
This page took 0.070729 seconds and 4 git commands to generate.