Skip to content

Commit

Permalink
release 2.38 (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyiq committed Jan 25, 2023
1 parent b2fbddb commit 307c987
Show file tree
Hide file tree
Showing 23 changed files with 111 additions and 47 deletions.
4 changes: 4 additions & 0 deletions classes/exceptions/Exceptions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ public static function unserialize($serialized)
{
$exception = (array)json_decode(base64_decode($serialized));

array_walk_recursive($exception, function(&$value) {
$value = preg_replace('`\{(tr:)*(cfg|conf|config):([^}]+)\}`', '', $value);
});

if (!array_key_exists('message', $exception)) {
throw new DetailedException('not_an_exception', $exception);
}
Expand Down
4 changes: 4 additions & 0 deletions language/cs_CZ/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Platná do</td>
{if:guest.does_not_expire}
<td>nikdy</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
6 changes: 5 additions & 1 deletion language/da_DK/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Gyldig indtil</td>
{if:guest.does_not_expire}
<td>aldrig</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand All @@ -70,4 +74,4 @@
<p>
Med venlig hilsen<br />
{cfg:site_name}
</p>
</p>
4 changes: 4 additions & 0 deletions language/de_DE/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Gültig bis</td>
{if:guest.does_not_expire}
<td>niemals</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
4 changes: 4 additions & 0 deletions language/en_AU/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Valid until</td>
{if:guest.does_not_expire}
<td>never</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
6 changes: 5 additions & 1 deletion language/es_ES/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
</tr>
<tr>
<td>Fecha de expiración</td>
{if:guest.does_not_expire}
<td>nunca</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand All @@ -71,4 +75,4 @@
<p>
Saludos,<br />
{cfg:site_name}
</p>
</p>
4 changes: 4 additions & 0 deletions language/et_EE/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Vautšer kehtib kuni</td>
{if:guest.does_not_expire}
<td>iial</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
6 changes: 5 additions & 1 deletion language/fa_IR/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
</tr>
<tr>
<td>انقضا</td>
{if:guest.does_not_expire}
<td>هیچگاه</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand All @@ -68,4 +72,4 @@
آرزوی بهترین‌ها برای شما
<br />
{cfg:site_name}
</p>
</p>
4 changes: 4 additions & 0 deletions language/fi_FI/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
</tr>
<tr>
<td>Voimassa</td>
{if:guest.does_not_expire}
<td>ei koskaan</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
6 changes: 5 additions & 1 deletion language/hr_HR/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Vrijedi do</td>
{if:guest.does_not_expire}
<td>nikada</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand All @@ -70,4 +74,4 @@
<p>
Lijepi pozdrav,<br />
{cfg:site_name}
</p>
</p>
4 changes: 4 additions & 0 deletions language/it_IT/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Valido fino al</td>
{if:guest.does_not_expire}
<td>mai</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
4 changes: 4 additions & 0 deletions language/ja_JP/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>無効化日</td>
{if:guest.does_not_expire}
<td>なし</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
6 changes: 5 additions & 1 deletion language/nl_NL/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Geldig tot</td>
{if:guest.does_not_expire}
<td>Nooit</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand All @@ -70,4 +74,4 @@
<p>
Hoogachtend,<br />
{cfg:site_name}
</p>
</p>
4 changes: 4 additions & 0 deletions language/pl_PL/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Ważność</td>
{if:guest.does_not_expire}
<td>nigdy</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
4 changes: 4 additions & 0 deletions language/pt_BR/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@
</tr>
<tr>
<td>Válido até</td>
{if:guest.does_not_expire}
<td>Nunca</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
4 changes: 4 additions & 0 deletions language/ru_RU/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
</tr>
<tr>
<td>Срок истечения ваучера</td>
{if:guest.does_not_expire}
<td>Никогда</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
6 changes: 5 additions & 1 deletion language/sl_SI/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Veljavno do</td>
{if:guest.does_not_expire}
<td>nikoli</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand All @@ -70,4 +74,4 @@
<p>
Lep pozdrav,<br />
{cfg:site_name}
</p>
</p>
6 changes: 5 additions & 1 deletion language/sr_RS/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Važi do</td>
{if:guest.does_not_expire}
<td>nikada</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand All @@ -70,4 +74,4 @@
<p>
Lep pozdrav,<br />
{cfg:site_name}
</p>
</p>
4 changes: 4 additions & 0 deletions language/tr_TR/guest_created.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
</tr>
<tr>
<td>Valid until</td>
{if:guest.does_not_expire}
<td>asla</td>
{else}
<td>{date:guest.expires}</td>
{endif}
</tr>
</tbody>
</table>
Expand Down
22 changes: 11 additions & 11 deletions templates/admin_transfers_section.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
$selector .= " AND id >= $idmin AND id <= $idmax ";
}
}
$placeholders=array();
$senderemail_full_match = Utilities::arrayKeyOrDefault( $_GET, 'senderemail_full_match', '', FILTER_VALIDATE_BOOLEAN );
$senderemail = Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '' );
$senderemailUnsanitized = Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '' );
$senderemail = Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '', FILTER_SANITIZE_EMAIL );
// if this is a full match then we can filter the email string.
if( $senderemail_full_match )
$senderemail = Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '', FILTER_VALIDATE_EMAIL );
Expand All @@ -36,20 +38,21 @@
// Note that we are using semi validated data from above
// and that this is an admin only page, so hacking is less likely.
if( $senderemail_full_match ) {
$selector .= " AND user_email = '$senderemail' ";
$selector .= " AND LOWER(user_email) = :senderemail ";
} else {
if( substr_compare($senderemail, '%', 0, 1 )) {
if( substr_compare($senderemailUnsanitized, '%', 0, 1 )) {
$senderemail = '%'.$senderemail;
}
if( substr_compare($senderemail, '%', -1, 1 )) {
if( substr_compare($senderemailUnsanitized, '%', -1, 1 )) {
$senderemail = $senderemail.'%';
}

$selector .= " AND user_email LIKE '$senderemail' ";
$selector .= " AND LOWER(user_email) LIKE :senderemail ";
}
$placeholders[":senderemail"] = mb_strtolower($senderemail);
} else {
if( $senderemail_full_match ) {
if( strlen(Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '' ))) {
if( strlen(Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '', FILTER_SANITIZE_EMAIL ))) {
// the email didn't validate so show no search results.
$selector .= ' and id < 0 ';
}
Expand All @@ -70,7 +73,7 @@
'order' => $trsort->getOrderByClause(),
'count' => $page_size,
'offset' => $offset
));
), $placeholders);

$navigation = '<div class="transfers_list_page_navigation">'."\n";
$transfersort = Utilities::getGETparam('transfersort','');
Expand Down Expand Up @@ -152,10 +155,7 @@

<?php
$senderemail_full_match = Utilities::arrayKeyOrDefault( $_GET, 'senderemail_full_match', '', FILTER_VALIDATE_BOOLEAN );
$senderemail = Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '' );
if( $senderemail_full_match )
$senderemail = Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '', FILTER_VALIDATE_EMAIL );

$senderemail = Utilities::arrayKeyOrDefault( $_GET, 'senderemail', '' ); // we don't want to FILTER_SANITIZE_EMAIL here
$senderemail_full_match_extra = '';
if( $senderemail_full_match ) {
$senderemail_full_match_extra = ' checked ';
Expand Down
26 changes: 11 additions & 15 deletions www/js/graph/aggregate-statistics-data-for-chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,19 @@
'text' => Lang::tr('aggregate_stats_graph_title_per_time_interval')
->r('eventtype',$eventtypetr)->r('epochtype',$epochtypetr)->out()
),
'legend' => array(
'position' => 'none'
),
'plugins' => array(
'legend' => array(
'position' => 'none'
),
),
'scales' => array(
'yAxes' => array(
array(
'ticks' => array( 'min' => 0 ),
'scaleLabel' => array( 'display' => true,
'labelString' => $ylabel,
),
),
),
'xAxes' => array(
array(
'type' => 'time',
'ticks' => array( 'min' => 0 ),
'yAxes' => array(
'display' => true,
'title' => array (
'display' => true,
'text' => $ylabel
),
'ticks' => array( 'min' => 0 ),
),
)
)
Expand Down
9 changes: 0 additions & 9 deletions www/js/graph/uploadGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,6 @@
),
'ticks' => array( 'min' => 0 ),
),
'x' => array(
array(
'type' => 'time',
'time' => array(
'tooltipFormat' => 'DD',
),
'ticks' => array( 'min' => 0 ),
),
),
)
)
);
Expand Down

0 comments on commit 307c987

Please sign in to comment.