Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: apostrophe with preceding \ Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
lessthan
Newbie
Newbie


Joined: 29 October 2006
Location: United Kingdom
Online Status: Offline
Posts: 12
Posted: 31 October 2006 at 8:22am | IP Logged Quote lessthan

Thanks for your earlier messages.

I noticed that apostrophes come out oddly in MailBee Lite, e.g.:-

the gardener\'s dog (with preceding \)

instead of

the gardener's dog

I can't remember where I have seen someone comment on it before in the forum. I know this is to do with how php handles the character. Is there a fix? Thanks,


Talat
Back to Top View lessthan's Profile Search for other posts by lessthan
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 31 October 2006 at 9:01am | IP Logged Quote Andrew

The issue is caused by the following setting of your PHP engine:

Code:
magic_quotes_gpc = On


This setting makes PHP to forcedly quote singlequotes and doublequotes with backslashes. You can turn off this setting in php.ini:

Code:
magic_quotes_gpc = Off


and the issue will be resolved.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
lessthan
Newbie
Newbie


Joined: 29 October 2006
Location: United Kingdom
Online Status: Offline
Posts: 12
Posted: 01 November 2006 at 4:30am | IP Logged Quote lessthan

Unfortunately I don't have access, since it is on the University server. But thanks!

Is it possible to code a work-around using unicode? Are any other characters such as @ affected by this feature of php? I notice that the University's webmail client (your rival, Squirrel Mail - not as good, of course!) does not suffer from the problem, although it runs in the same php environment.

Thanks,


Talat
Back to Top View lessthan's Profile Search for other posts by lessthan
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 01 November 2006 at 5:29am | IP Logged Quote Andrew

If your hosting provider allows using .htaccess file, as a workaround, you can add the following instruction into the .htaccess in the web folder of your WebMail PHP installation:

Code:
php_flag magic_quotes_gpc off


You can learn more about "magic quotes" at:
http://php.net/magic_quotes

Please let us know if this helps.
Back to Top View Andrew's Profile Search for other posts by Andrew
 
lessthan
Newbie
Newbie


Joined: 29 October 2006
Location: United Kingdom
Online Status: Offline
Posts: 12
Posted: 01 November 2006 at 6:58am | IP Logged Quote lessthan

Thanks, but it didn't work. The information was useful, though. I've also found out a whole lot of useful stuff about .htaccess in the process. The server allows some uses of .htaccess at least, possibly not all.

Using the value "off" just made it impossible to get any pages in the directory, but the following did not:-

php_flag magic_quotes_gpc 0

On the other hand, it didn't stop the magic quotes! I found out that you can use php functions like stripquotes() instead. Is this to be recommended? I assume it would be necessary to change the subject line and the body of the e-mails. But I understand that such methods can cause unintended results.

I'm guessing that my server simply doesn't allow people to disable magic quotes and ignores any such request. That, at least, is what appears to happen.

What could you recommend?

Thanks again,


Talat
Back to Top View lessthan's Profile Search for other posts by lessthan
 
lessthan
Newbie
Newbie


Joined: 29 October 2006
Location: United Kingdom
Online Status: Offline
Posts: 12
Posted: 01 November 2006 at 7:04am | IP Logged Quote lessthan

No, my mistake: it doesn't work with any value at all, not even "0" instead of "off".

.htaccess does work generally, though.


Talat
Back to Top View lessthan's Profile Search for other posts by lessthan
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 01 November 2006 at 7:17am | IP Logged Quote Andrew

WebMail PHP requires "magic quotes" turned off. You're free to modify WebMail PHP code and implement eliminating the effect of "magic quotes" (using stripquotes() or another way), but such solution will be unsupported.
Back to Top View Andrew's Profile Search for other posts by Andrew
 
lessthan
Newbie
Newbie


Joined: 29 October 2006
Location: United Kingdom
Online Status: Offline
Posts: 12
Posted: 01 November 2006 at 8:13am | IP Logged Quote lessthan

Fine, I completely understand that you can't support every users' individual modification needs as far as free software is concerned. I appreciate that you work hard to provide advice on this forum already, and I am among your most grateful users in that regard.

However, this is a major problem that affects more than just me, as I note from the forums. I am considering buying the full commercial version and am therefore testing the free php implementation. It will influence my decision if the ugly slashes remain. I hope that I find a solution, as you may otherwise lose a sale and I may lose the opportunity to use your otherwise excellent software.

This would obviously not be in either of our interests.

I must thank you once again for your exemplary support system. Best wishes,


Talat
Back to Top View lessthan's Profile Search for other posts by lessthan
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 01 November 2006 at 8:31am | IP Logged Quote Andrew

There is no WebMail PHP Pro version yet, it's in development now. Only ASP version of WebMail Pro available now which has no problems with slashes because ASP doesn't provide "magic quotes" feature. But we're going to avoid "magic quotes" problem in the next version of WebMail Lite PHP as well as in WebMail Pro PHP.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide