[svn r20794] minor - logic changes - replace COURSEMANAGER by COURSEMANAGERLOWSECURITY in document tool - (partial FS#3909)

skala
Isaac Flores 17 years ago
parent 1b1bff7ff1
commit 85f66e413e
  1. 4
      main/document/create_document.php
  2. 4
      main/document/edit_document.php

@ -1,4 +1,4 @@
<?php // $Id: create_document.php 20606 2009-05-13 20:50:17Z cvargas1 $
<?php // $Id: create_document.php 20794 2009-05-18 18:00:36Z iflorespaz $
/*
==============================================================================
@ -435,7 +435,7 @@ if ($form->validate()) {
$filename = replace_accents($values['filename']);
$texte = $values['content'];
$texte=Security::remove_XSS($texte,COURSEMANAGER);
$texte=Security::remove_XSS($texte,COURSEMANAGERLOWSECURITY);
$title = $values['filename'];
$extension = 'html';
if (!strstr($texte, '/css/frames.css')) {

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 20701 2009-05-15 16:54:36Z cvargas1 $
<?php // $Id: edit_document.php 20794 2009-05-18 18:00:36Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
@ -419,7 +419,7 @@ if($is_allowedToEdit)
$filename=stripslashes($_POST['filename']);
$texte=trim(str_replace(array("\r","\n"),"",stripslashes($_POST['texte'])));
$texte=Security::remove_XSS($texte,COURSEMANAGER);
$texte=Security::remove_XSS($texte,COURSEMANAGERLOWSECURITY);
if(!strstr($texte,'/css/frames.css'))
{

Loading…
Cancel
Save