Forráskód Böngészése

[svn r11170] Added XSS filtering (see http://projects.dokeos.com/?do=details&id=1200)

Yannick Warnier 18 éve
szülő
commit
545077bf3a
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      main/auth/profile.php

+ 2 - 2
main/auth/profile.php

@@ -1,5 +1,5 @@
 <?php
-// $Id: profile.php 11139 2007-02-17 15:43:14Z yannoo $
+// $Id: profile.php 11170 2007-02-20 02:24:18Z yannoo $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -61,7 +61,7 @@ function confirmation(name)
 
 if (!empty ($_GET['coursePath']))
 {
-	$course_url = api_get_path(WEB_COURSE_PATH).$_GET['coursePath'].'/index.php';
+	$course_url = api_get_path(WEB_COURSE_PATH).htmlentities(strip_tags($_GET['coursePath'])).'/index.php';
 	$interbreadcrumb[] = array ('url' => $course_url, 'name' => $_GET['courseCode']);
 }