Page 1 of 1

Inline comments in CSS cause 404 error

Posted: Mon Feb 09, 2015 6:41 pm
by paulbaker
CMSMS 1.11.11 - site working well with a .com domain for months.

Client opening in another country, wanted identical site set up at another domain. They sorted out the hosting. I copied database and files, set up site on new domain, tested it all out, front end working fine. Back end appeared to be working fine too.

A few days pass, client comes back (he has full admin access) with a problem when he edits CSS on the new version of the site.

My investigations reveal pressing Submit button when editing a stylesheet gives a 404 error but ONLY for certain inputs.

Stylesheet with a few line returns: saves no problem.

As above with addition of

Code: Select all

/* Drop down colour */
returns a 404 error. No PHP error is logged.

Change the above (valid) CSS to

Code: Select all

/*
Drop down colour
*/
and the stylesheet is saved OK.

So the new host doesn't like /* in line comments */. Now I know the cause it's easily prevented.

But what would cause that? ???



----------------------------------------------
Cms Version: 1.11.11
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.7
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
Notifications: 1.1
Archiver: 0.2.6
CGExtensions: 1.42.2
CGSimpleSmarty: 1.7.4
CGBlog: 1.12.6
ListIt2: 1.4.1
ListIt2KeyStaff: 1.4.1
ListIt2XDefs: 1.2
GBFilePicker: 1.3.3
JQueryTools: 1.2.6
ListIt2Clients: 1.4.1
TinyMCE: 2.9.12
AdvancedContent: 0.9.4.3
FrontEndUsers: 1.24.1
ListIt2Testimonials: 1.4.1
ListIt2AccreditationsISO: 1.4.1
CustomContent: 1.10
ListIt2AccreditationsHandS: 1.4.1
SEOTools2: 1.2.1
ListIt2AccreditationsHR: 1.4.1
ListIt2ListIt2AccreditationsHR: 1.4.1
ListIt2AccreditationsEnvironment: 1.4.1
ListIt2AccreditationsTrade: 1.4.1
ListIt2AccreditationsInsurance: 1.4.1
ListIt2AccreditationsInsuranceAirport: 1.4.1
ListIt2AccreditationsProfessional: 1.4.1
ListIt2Office: 1.4.1
ListIt2MOTat50News: 1.4.1

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.4.36
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
memory_limit: 64M
max_execution_time: 60
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.40
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found

----------------------------------------------

Re: Inline comments in CSS cause 404 error

Posted: Mon Feb 09, 2015 6:45 pm
by calguy1000
mod_security would be my bet.

Re: Inline comments in CSS cause 404 error

Posted: Mon Feb 09, 2015 6:49 pm
by paulbaker
Gah! I swear mod_security follows me around just so it can bite me on the *ss every now and then.

:'(

Re: Inline comments in CSS cause 404 error

Posted: Mon Feb 09, 2015 6:51 pm
by paulbaker
...and thank you Calguy