Skip to content

Commit d02fb98

Browse files
author
bnu
committed
Merge branch 'hotfix/1.7.13'
2 parents 1108e24 + 2e53b6a commit d02fb98

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

classes/extravar/Extravar.class.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ function _getTypeValue($type, $value)
225225
$values = explode(',', $value);
226226
}
227227

228+
$values = array_values($values);
229+
for($i = 0, $c = count($values); $i < $c; $i++)
230+
{
231+
$values[$i] = trim(htmlspecialchars($values[$i], ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
232+
}
228233
return $values;
229234

230235
case 'checkbox' :
@@ -247,11 +252,11 @@ function _getTypeValue($type, $value)
247252
$values = array($value);
248253
}
249254

255+
$values = array_values($values);
250256
for($i = 0, $c = count($values); $i < $c; $i++)
251257
{
252258
$values[$i] = trim(htmlspecialchars($values[$i], ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
253259
}
254-
255260
return $values;
256261

257262
case 'kr_zip' :
@@ -268,6 +273,11 @@ function _getTypeValue($type, $value)
268273
$values = array($value);
269274
}
270275

276+
$values = array_values($values);
277+
for($i = 0, $c = count($values); $i < $c; $i++)
278+
{
279+
$values[$i] = trim(htmlspecialchars($values[$i], ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
280+
}
271281
return $values;
272282

273283
//case 'date' :

config/config.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Display XE's full version.
3131
*/
32-
define('__XE_VERSION__', '1.7.12');
32+
define('__XE_VERSION__', '1.7.13');
3333
define('__XE_VERSION_ALPHA__', (stripos(__XE_VERSION__, 'alpha') !== false));
3434
define('__XE_VERSION_BETA__', (stripos(__XE_VERSION__, 'beta') !== false));
3535
define('__XE_VERSION_RC__', (stripos(__XE_VERSION__, 'rc') !== false));

0 commit comments

Comments
 (0)