Opened 14 years ago

Closed 13 years ago

#612 closed defect (fixed)

SpellChecker Plugin undefined variable patch - aspell_setup.php

Reported by: scianos@… Owned by: gogo
Priority: normal Milestone:
Component: Plugin_SpellChecker Version:
Severity: minor Keywords:
Cc:

Description (last modified by gogo)

The following patch fixes a minor warning/error due to failure to confirm that a variable has been created. Affected file: aspell_setup.php

--- c:\documents and settings\scianos\desktop\xinha-nightly.tar\xinha-nightly\plugins\SpellChecker\aspell_setup.php	Sun Nov 13 23:48:41 2005
+++ aspell_setup.php	Fri Dec  9 15:45:06 2005
@@ -58,7 +58,7 @@
   // Personal dictionaries
   $p_dicts_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'personal_dicts';
 
-  if(file_exists($_REQUEST['p_dicts_path']) && is_writable($_REQUEST['p_dicts_path']))
+  if(isset($_REQUEST['p_dicts_path']) && file_exists($_REQUEST['p_dicts_path']) && is_writable($_REQUEST['p_dicts_path']))
   {
     if(!isset($_REQUEST['p_dicts_name']))
     {

Attachments (1)

aspell_setup.php.patch (581 bytes) - added by scianos@… 14 years ago.
Patch with changes to line 61

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by scianos@…

Patch with changes to line 61

comment:1 Changed 14 years ago by gogo

  • Description modified (diff)

comment:2 Changed 13 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.