CMS MADE SIMPLE FORGE

Frontend Users

 

[#4727] URL encoding issue when changing settings

avatar
Created By: Rick Mann (Ricko97)
Date Submitted: Fri Mar 26 19:52:23 -0400 2010

Assigned To:
Version: 1.8.1
CMSMS Version: None
Severity: Minor
Resolution: None
State: Open
Summary:
URL encoding issue when changing settings
Detailed Description:
This issue applies to usergroups that have a text input or textarea property.

Basically, when a user submits the Change Settings form and an error occurs
(e.g. passwords don't match), FEU redirects the user with a long raw URL
containing all the parameters for properties they filled out, and if they have
any special characters (such as ampersands or quote marks) in a property, they
get messed up due to the URL encoding and end up with something like this in the
text input/textarea:

"


History

Comments
avatar
Date: 2013-05-27 12:28
Posted By: manuel (manuel)

Hi Ricko,

I also experienced issues with the URL encoding after a user gets an error while
changing FEU settings.
I found that the following rules in the .htaccess where causing trouble when
"pretty URL's are being used AND no page extension has been chosen.
After uncommenting them everything got "urldecoded" correctly.

RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

But... if traling slashes are no longer an option, it might be advisable to just
set up a page extension :)
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.htm';

I hope this helps you resolve the issue you where experiencing!

ps: if you don't assign the Bug report to anyone, i don't think anyone gets
notified by e-mail...

Greetings,
Manuel
      
avatar
Date: 2013-05-27 15:40
Posted By: manuel (manuel)

Actually, Google doesn't care if you don't use trailing slashes so "disable the
rules in .htaccess" is just as good of a solution as "add page_extension"...
http://googlewebmastercentral.blogspot.be/2010/04/to-slash-or-not-to-slash.html

Greetings,
Manuel