Skip to content

Commit 93d3112

Browse files
committed
Support UTF8 characters
Closes #59
1 parent 3265fc0 commit 93d3112

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

controller/main.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ public function handle()
119119
'NAME' => $value,
120120
'DESC' => $this->user->lang('SKELETON_QUESTION_' . strtoupper($value) . '_UI'),
121121
'DESC_EXPLAIN' => array_key_exists('SKELETON_QUESTION_' . strtoupper($value) . '_EXPLAIN', $this->user->lang) ? $this->user->lang('SKELETON_QUESTION_' . strtoupper($value) . '_EXPLAIN') : '',
122-
'VALUE' => $this->request->variable($value, (string) $default),
122+
'VALUE' => $this->request->variable($value, (string) $default, true),
123123
));
124124
}
125125

126126
$author_values = array();
127127
foreach ($dialog_questions['author'] as $value => $default)
128128
{
129-
$author_values[$value] = $this->request->variable($value, array((string) $default));
129+
$author_values[$value] = $this->request->variable($value, array((string) $default), true);
130130
}
131131

132132
$num_authors = max(1, count($author_values['author_name']));
@@ -274,10 +274,10 @@ protected function get_request_variable($value, $default, $array_key = null)
274274

275275
if ($array_key !== null)
276276
{
277-
$return_value = $this->request->variable($value, array((string) $default));
277+
$return_value = $this->request->variable($value, array((string) $default), true);
278278
return isset($return_value[$array_key]) ? (string) $return_value[$array_key] : (string) $default;
279279
}
280280

281-
return $this->request->variable($value, (string) $default);
281+
return $this->request->variable($value, (string) $default, true);
282282
}
283283
}

helper/packager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function get_composer_json_from_data($data)
228228
);
229229
}
230230

231-
$body = json_encode($composer, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES);
231+
$body = json_encode($composer, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE);
232232
$body = str_replace(array('&lt;', '&gt;'), array('<', '>'), $body);
233233
$body .= PHP_EOL;
234234

0 commit comments

Comments
 (0)