Changeset 1197

Show
Ignore:
Timestamp:
07/21/2008 01:30:51 PM (2 years ago)
Author:
NilsLindenberg
Message:

refs #794: fixing a critical bug in caching mechanism + correcting two constant names to prevent notices

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/handlers/edit/edit.php

    r1191 r1197  
    319319                        } 
    320320                    $edit_buttons .= '<fieldset><legend>'.EDIT_CACHE_LEGEND.'</legend>'."\n". 
    321                         '<input name="submit" type="submit" value="'.EDIT_SAVE_AND_CONTINUE_BUTTON.'" accesskey="'.ACCESSKEY_SAVE_AND_CONTINUE_BUTTON.'" />'."\n". 
    322                         '<input name="submit" type="submit" value="'.EDIT_SAVE_AND_QUIT_BUTTON.'" accesskey="'.ACCESSKEY_SAVE_AND_QUIT_BUTTON.'" />'."\n". 
     321                        '<input name="submit" type="submit" value="'.EDIT_SAVE_AND_CONTINUE_BUTTON.'" accesskey="'.ACCESSKEY_SAVE_AND_CONTINUE.'" />'."\n". 
     322                        '<input name="submit" type="submit" value="'.EDIT_SAVE_AND_QUIT_BUTTON.'" accesskey="'.ACCESSKEY_SAVE_AND_QUIT.'" />'."\n". 
    323323                        '<input '.$disabled.' name="submit" type="submit" value="'.PAGE_EDIT_CACHE_RETRIEVE_BUTTON.'"/>'."\n". 
    324324                        '<input '.$disabled.' name="submit" type="submit" value="'.PAGE_EDIT_CACHE_DELETE_BUTTON.'"/>'."\n"; 
     
    458458        $query = " 
    459459                UPDATE ".$wakka->GetConfigValue('table_prefix')."edit_cache 
    460                 SET contents='".$contents."', updated=now() 
     460                SET contents='".mysql_real_escape_string($contents)."', updated=now() 
    461461                WHERE page_tag='".$wakka->page['tag']."' AND 
    462462                      owner='".$wakka->GetUserName()."'";