mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-05-18 12:58 am

[dw-free] Unable to save EmailPosting information via manage/settings/?cat=mobile

[commit: http://hg.dwscoalition.org/dw-free/rev/dc38b4979caa]

http://bugs.dwscoalition.org/show_bug.cgi?id=1223

Fix regex to account for saving settings from the xposter and other things.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/LJ/Setting.pm
--------------------------------------------------------------------------------
diff -r 1eeef8b46daa -r dc38b4979caa cgi-bin/LJ/Setting.pm
--- a/cgi-bin/LJ/Setting.pm	Mon May 18 00:39:01 2009 +0000
+++ b/cgi-bin/LJ/Setting.pm	Mon May 18 00:58:43 2009 +0000
@@ -64,7 +64,7 @@ sub class_from_key {
 sub class_from_key {
     my ( $val ) = @_;
 
-    my ( $class, $key ) = $val =~ /^((?:[a-zA-Z0-9]+__)+[a-zA-Z0-9]+)_(\w+)$/;
+    my ( $class, $key ) = $val =~ /^((?:[a-zA-Z0-9]+__)+[a-zA-Z0-9]+)_([\w\[\]]+)$/;
     $class =~ s/__/::/g if $class;
 
     return ( $class, $key );
--------------------------------------------------------------------------------