Advanced HTML Editor 3 Support Product Page

In progress

Mod_Security

Reported 08 Feb 2014 14:53:25
1
has this problem
08 Feb 2014 14:53:25 Christian Wilson posted:
When trying to upload an image, I get the following error right after selecting the image.


• Not Acceptable!Not Acceptable!An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

I believe it has something to do with paths that contain "../../"

I am not able to disable any mod_security rules on this server via the htaccess file.

Here is the log file entry.

"POST /ScriptLibrary/dmxEditor/dialogs/upload.php?GP_upload=true&upfolder=../../../images/calendar&subfolder= HTTP/1.1" 406 226

Any help would be greatly appreciated.



Replies

Replied 10 Feb 2014 16:12:26
10 Feb 2014 16:12:26 Teodor Kuduschiev replied:
Hello Christian,
Can you please send a link to your page to so we can review it?
Replied 13 Feb 2014 00:51:21
13 Feb 2014 00:51:21 Christian Wilson replied:
I got my web host to whitelist the mod_security rule that was causing the issue. I then starting to get php errors regarding the following line in the upload.php file.
<?php require_once('/ScriptLibrary/incPureUpload.php'); ?>

I then change it to the full path and everything started working.

<?php require_once('/home3/crcc/public_html/ScriptLibrary/incPureUpload.php'); ?>


Running PHP 5.4


Replied 13 Feb 2014 08:14:38
13 Feb 2014 08:14:38 Teodor Kuduschiev replied:
Hello,
The issue seems to be caused when your site is setup in dreamweaver to use paths relative to root. If you change this to paths relative to document, the error won't appear.
We will fix this in the next update.

Reply to this topic