]> git.pld-linux.org Git - packages/ajax-spell.git/blobdiff - ajax-spell-fixes.patch
- BR: unzip
[packages/ajax-spell.git] / ajax-spell-fixes.patch
index 080d74e1c9d238e2ba3b15e1a4c718c338f4076a..74f7cb6db41f8d08f6fbbb4a05915a73dd7ae264 100644 (file)
@@ -1,6 +1,5 @@
-diff -u ../pspell_comp.php ./pspell_comp.php
---- ../pspell_comp.php 2005-06-24 15:32:02.000000000 +0300
-+++ ./pspell_comp.php  2005-06-24 15:38:15.000000000 +0300
+--- spell_checker/pspell_comp.php.oryg 2007-04-19 14:37:05.000000000 +0200
++++ spell_checker/pspell_comp.php      2007-04-19 14:38:49.000000000 +0200
 @@ -44,9 +44,9 @@
  
  if(!defined('ASPELL_BIN')) define('ASPELL_BIN','aspell');
@@ -14,46 +13,24 @@ diff -u ../pspell_comp.php ./pspell_comp.php
  
  function pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1'){
      return new Pspell($language, $spelling, $jargon, $encoding);
-@@ -120,23 +120,23 @@
-     function _prepareArgs(){
-         $this->args = '';
--        if($this->$language){
--            $this->args .= ' --lang='.escapeshellarg($language);
--        }else{
-+        if ($this->language) {
-+            $this->args .= ' --lang='.escapeshellarg($this->language);
-+        } else {
-             return false; // no lang no spell
-         }
+@@ -129,11 +129,11 @@
          #FIXME how to support spelling?
  
--        if($this->$jargon){
+         if($this->$jargon){
 -            $this->args .= ' --jargon='.escapeshellarg($jargon);
-+        if ($this->jargon){
 +            $this->args .= ' --jargon='.escapeshellarg($this->jargon);
          }
  
--        if($this->$encoding){
+         if($this->$encoding){
 -            $this->args .= ' --encoding='.escapeshellarg($encoding);
-+        if($this->encoding){
 +            $this->args .= ' --encoding='.escapeshellarg($this->encoding);
          }
  
--        switch ($this->mode){
-+        switch ($this->mode) {
-             case PSPELL_FAST:
-                 $this->args .= ' --sug-mode=fast';
-                 break;
-diff -u ../spell_checker.php ./spell_checker.php
---- ../spell_checker.php       2005-06-24 15:32:02.000000000 +0300
-+++ ./spell_checker.php        2005-06-24 15:48:17.000000000 +0300
-@@ -38,6 +38,7 @@
-  *************************************************************/
- //user configurable list of allowed HTML tags.  Thanks to Jake Olefsky for this little addition.
-+// FIXME with register_globals = on security risk (glen)
- if(empty($allowed_html)) $allowed_html = '<p><a><br><b><i><img><strong><small><ul><li>';
+         switch ($this->mode){
+@@ -233,4 +233,4 @@
+     }
+ }
  
- //if pspell doesn't exist, then include the pspell wrapper for aspell
+-?>
+\ Brak znaku nowej linii na koƱcu pliku
++?>
This page took 0.058404 seconds and 4 git commands to generate.