Project

General

Profile

« Previous | Next » 

Revision 1028

Added by Ruud over 15 years ago

Fixed the wrong handling of htmlentities in Droplet parameter parsing

View differences:

trunk/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14
03-July-2009 Ruud Eisinga
15
#	Fixed the wrong handling of htmlentities in Droplet parameter parsing
14 16
02-July-2009 Matthias Gallas
15 17
+	Added missing fancy_progress.png
16 18
01-July-2009 Matthias Gallas
trunk/wb/modules/droplets/info.php
14 14
$module_directory = 'droplets';
15 15
$module_name = 'Droplets';
16 16
$module_function = 'tool';
17
$module_version = '1.0.0';
17
$module_version = '1.0.1';
18 18
$module_platform = '2.8.x';
19 19
$module_author = 'Ruud and pcwacht';
20 20
$module_license = 'GPL';
trunk/wb/modules/droplets/droplets.php
19 19
		if (strpos($match,"?")) {
20 20
			list ($droplet,$params) = explode("?",$match);
21 21
			if(!empty($params)) {
22
				$params = str_replace("&", "&", $params); // replace & to single &
22
				$params = html_entity_decode($params,ENT_COMPAT,DEFAULT_CHARSET); // make sure we can parse the parameters correctly
23 23
				$paramarray = explode("&",$params); //create array of parms as parm=value
24 24
				foreach ($paramarray as $paramelement) {
25 25
					$parameterTemp = explode("=", $paramelement,2);
26 26
					if (count($parameterTemp) == 2)
27
						$parameter[$parameterTemp[0]] = $parameterTemp[1];
27
						$parameter[$parameterTemp[0]] = htmlentities($parameterTemp[1],ENT_COMPAT,DEFAULT_CHARSET); //re-encode the parameter values
28 28
					else
29
						$parameter['parm'] = $parameterTemp[0];
29
						$parameter['parm'] = htmlentities($parameterTemp[0],ENT_COMPAT,DEFAULT_CHARSET);
30 30
				}
31 31
			}
32 32
		} else {

Also available in: Unified diff