Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-2008, 07:35 PM
Junior Member
 
Join Date: May 2008
Posts: 3
Default 404 in front controller if sending urlencoded new line or backslash

Hi there,

I'm using the Front Controller and a self-written Remote Procedure Controller (RpcController) which accepts an url- and json-encoded string as param.

f.e. JavaScripted escape(YAHOO.lang.JSON.stringify(myArray))
That works as long the myArray does not contain a new line, which I can't understand, because I'm using escape and JSON.stringify to encode and transport the message as GET parameter (OK maybe the solution is to send it with POST). With a new line, I'll get a 404 server error from apache, when I remove the sequence, it works.

See this example:
http://*.local/admin/rpc/json/class/...d%20line%22%5D

If I remove everything behind (first) line, it works. Probably it's not an Controller, more an apache problem?

Code:
php_flag magic_quotes_gpc off

RewriteEngine On
RewriteRule ^.*$ index.php
Here's my .htaccess file.

What do you think?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:03 PM.