Skip to content

Commit 7a288d0

Browse files
author
Hai Zheng
committed
v7.5-a1: * **Conf** Fixed a type casting minor bug when the setting is empty which may cause unnecessary QUIC.cloud sync conf.
* **Misc** Dropped unused rewrite rule from htaccess.
1 parent b91e1ee commit 7a288d0

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/admin-settings.cls.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ public function save( $raw_data ) {
7979
// Pull value from request.
8080
if ( $child ) {
8181
// []=xxx or [0]=xxx
82-
$data = ! empty( $raw_data[ $id ][ $child ] ) ? $raw_data[ $id ][ $child ] : false;
82+
$data = ! empty( $raw_data[ $id ][ $child ] ) ? $raw_data[ $id ][ $child ] : $this->type_casting(false, $id);
8383
} else {
84-
$data = ! empty( $raw_data[ $id ] ) ? $raw_data[ $id ] : false;
84+
$data = ! empty( $raw_data[ $id ] ) ? $raw_data[ $id ] : $this->type_casting(false, $id);
8585
}
8686

8787
// Sanitize/normalize complex fields.

src/base.cls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ public function load_default_vals() {
770770
* @since 3.0
771771
*/
772772
protected function _conf_string_val( $id, $val ) {
773-
return $val;
773+
return (string)$val;
774774
}
775775

776776
/**

src/htaccess.cls.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ class Htaccess extends Root {
5050
const MARKER_START = ' start ###';
5151
const MARKER_END = ' end ###';
5252

53-
const RW_PATTERN_RES = '/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php';
54-
5553
/**
5654
* Initialize the class and set its properties.
5755
*

0 commit comments

Comments
 (0)