includes/pageprocess.php
changeset 825 9d5c04c1414f
parent 801 eb8b23f11744
child 827 2c20563245b2
equal deleted inserted replaced
817:880c4b7eb658 825:9d5c04c1414f
   196         // Page isn't whitelisted, behave as normal
   196         // Page isn't whitelisted, behave as normal
   197         $this->err_access_denied();
   197         $this->err_access_denied();
   198         return false;
   198         return false;
   199       }
   199       }
   200     }
   200     }
       
   201     if ( $this->revision_id > 0 && !$this->perms->get_permissions('history_view') )
       
   202     {
       
   203       $this->err_access_denied();
       
   204       return false;
       
   205     }
   201     
   206     
   202     // Is there a custom function registered for handling this namespace?
   207     // Is there a custom function registered for handling this namespace?
   203     // DEPRECATED (even though it only saw its way into one alpha release.)
   208     // DEPRECATED (even though it only saw its way into one alpha release.)
   204     if ( $proc = $paths->get_namespace_processor($this->namespace) )
   209     if ( $proc = $paths->get_namespace_processor($this->namespace) )
   205     {
   210     {
   441         $this->raise_error($lang->get('editor_err_page_protected'));
   446         $this->raise_error($lang->get('editor_err_page_protected'));
   442         return false;
   447         return false;
   443       }
   448       }
   444     }
   449     }
   445     
   450     
       
   451     // Spam check
       
   452     if ( !spamalyze($text) )
       
   453     {
       
   454       $this->raise_error($lang->get('editor_err_spamcheck_failed'));
       
   455       return false;
       
   456     }
       
   457     
   446     //
   458     //
   447     // Protection validated; update page content
   459     // Protection validated; update page content
   448     //
   460     //
   449     
   461     
   450     $text_undb = RenderMan::preprocess_text($text, false, false);
   462     $text_undb = RenderMan::preprocess_text($text, false, false);