skala
rrodriguez 16 years ago
parent 45972ead4b
commit 668f5e74f7
  1. 0
      main/lang/spanish/trad4all.inc.php
  2. 2
      main/newscorm/learnpath.class.php
  3. 2
      main/newscorm/lp_controller.php
  4. 3
      tests/main/inc/lib/internationalization.lib.test.php

@ -6518,7 +6518,7 @@ class learnpath {
$form = new FormValidator('form', 'POST', api_get_self() . "?" . $_SERVER["QUERY_STRING"], '', 'enctype="multipart/form-data"'); $form = new FormValidator('form', 'POST', api_get_self() . "?" . $_SERVER["QUERY_STRING"], '', 'enctype="multipart/form-data"');
$defaults["title"] = Security :: remove_XSS(api_convert_encoding($item_title, api_get_system_encoding() ,$this->encoding)); $defaults["title"] = Security :: remove_XSS(api_convert_encoding($item_title, api_get_system_encoding() ,$this->encoding));
if (empty ($item_title)) { if (empty ($item_title)) {
$defaults["title"] = Security :: remove_XSS($item_title); $defaults["title"] = Security::remove_XSS($item_title);
} }
$defaults["description"] = api_convert_encoding($item_description, $charset, $this->encoding); $defaults["description"] = api_convert_encoding($item_description, $charset, $this->encoding);
$form->addElement('html', $return); $form->addElement('html', $return);

@ -437,7 +437,7 @@ switch($action)
if(isset($_POST['submit_button'])) if(isset($_POST['submit_button']))
{ {
$_SESSION['oLP']->edit_item($_GET['id'], $_POST['parent'], $_POST['previous'], Security::remove_XSS($_POST['title']), $_POST['description']); $_SESSION['oLP']->edit_item($_GET['id'], $_POST['parent'], $_POST['previous'], Security::remove_XSS($_POST['title'], $_POST['description']) );
$is_success = true; $is_success = true;
} }

@ -521,7 +521,7 @@ class TestInternationalization extends UnitTestCase {
public function test_api_ereg() { public function test_api_ereg() {
$pattern = 'scorm/showinframes.php([^"\'&]*)(&|&)file=([^"\'&]*)$'; $pattern = 'scorm/showinframes.php([^"\'&]*)(&|&)file=([^"\'&]*)$';
$string = 'http://localhost/dokeos/main/scorm/showinframes.php?id=5&file=test.php'; $string = 'http://localhost/dokeos/main/scorm/showinframes.php?id=5&file=test.php';
$res = api_ereg($pattern, $string, $regs); $res = api_ereg($pattern, $string);
$this->assertTrue(is_numeric($res)); $this->assertTrue(is_numeric($res));
$this->assertTrue($res == 45); $this->assertTrue($res == 45);
//var_dump($res); //var_dump($res);
@ -541,6 +541,7 @@ class TestInternationalization extends UnitTestCase {
public function testapi_eregi() { public function testapi_eregi() {
$pattern = 'scorm/showinframes.php([^"\'&]*)(&|&)file=([^"\'&]*)$'; $pattern = 'scorm/showinframes.php([^"\'&]*)(&|&)file=([^"\'&]*)$';
$string = 'http://localhost/dokeos/main/scorm/showinframes.php?id=5&file=test.php'; $string = 'http://localhost/dokeos/main/scorm/showinframes.php?id=5&file=test.php';
$regs = '';
$res = api_eregi($pattern, $string, $regs); $res = api_eregi($pattern, $string, $regs);
$this->assertTrue(is_numeric($res)); $this->assertTrue(is_numeric($res));
$this->assertTrue($res == 45); $this->assertTrue($res == 45);

Loading…
Cancel
Save