Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Commit

Permalink
Configuration bug -- Redis/Memcached Server Entries (#367)
Browse files Browse the repository at this point in the history
This is a fix for the issue described in #366, where configuration values for comma-separated lists of Redis or Memcached servers get incorrectly saved as a string instead of an array.
  • Loading branch information
charlesLF authored and amiga-500 committed Feb 10, 2017
1 parent 13a00b6 commit c6c34d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generic_AdminActions_Default.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ function read_request( $config ) {
array_map( 'stripslashes_deep', $request_value );
else
$request_value = stripslashes( $request_value );
if ( strpos( $request_key, 'memcached_servers' ) )
if ( strpos( $request_key, 'memcached__servers' ) || strpos( $request_key, 'redis__servers' ) )
$request_value = explode( ',', $request_value );

$key = Util_Ui::config_key_from_http_name( $request_key );
Expand Down

0 comments on commit c6c34d7

Please sign in to comment.