[pLog-svn] r6096 - plog/branches/lifetype-1.2/class/action/admin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Thu Nov 29 12:56:35 EST 2007
Author: jondaley
Date: 2007-11-29 12:56:34 -0500 (Thu, 29 Nov 2007)
New Revision: 6096
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php
Log:
fixes bad formats in URLs. http://bugs.lifetype.net/view.php?id=615
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php 2007-11-29 17:38:43 UTC (rev 6095)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php 2007-11-29 17:56:34 UTC (rev 6096)
@@ -39,6 +39,27 @@
$this->_newConfigOpts["xmlrpc_ping_hosts"] = $array;
}
+ // the custom URL strings need some extra validation
+ $customUrlFormats = array(
+ "permalink_format",
+ "category_link_format",
+ "blog_link_format",
+ "archive_link_format",
+ "user_posts_link_format",
+ "post_trackbacks_link_format",
+ "template_link_format",
+ "album_link_format",
+ "resource_link_format",
+ "page_suffix_format");
+
+ foreach($customUrlFormats as $format){
+ if(isset($this->_newConfigOpts[$format])){
+ $val = $this->_newConfigOpts[$format];
+ $val = str_replace("\\", "/", $val);
+ $this->_newConfigOpts[$format] = $val;
+ }
+ }
+
// the 'locales' and 'arrays' settings are not coming from the request
$configOpts = $this->_config->getAsArray();
$locales = new Locales();
More information about the pLog-svn
mailing list