Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Apparent bug in Link mailto URL encoding

Last post 04-29-2013, 8:09 PM by Maximus5684. 9 replies.
Sort Posts: Previous Next
  •  01-14-2010, 8:11 AM 58160

    Apparent bug in Link mailto URL encoding

    I hit an issue in a site where the user had a mailto link in content structure like so...
     
    mailto:someone@somesite.com?Subject=Website Order&Body=PLACEHOLDER%0APoster 003%0ABe Conscious of Your Work Environment
     
    The problem comes in when they save back to the server.  Upon each time clicking the save button, the & in the URL gets replaced by &.  Successive saves net this pattern which effectively breaks the Body portion of the mailto link...
     
    &
    &
    &
    &
    &amp
    ...
     
    Each time they click save, the CuteEditor continues the pattern above.
     
    I've tested the behavior on the demo editor on your site + it's there as well.
     
    Regards,
    Jeramie 

    Regards,
    Jeramie
  •  01-14-2010, 9:32 AM 58163 in reply to 58160

    Re: Apparent bug in Link mailto URL encoding

    Dear jmercker,
     
     
    Regards,
    Eric
  •  01-18-2010, 7:23 AM 58233 in reply to 58163

    Re: Apparent bug in Link mailto URL encoding

    Thanks for the reply and the post.  My problem isn't that the initial & gets replaces with & it's that on successive postbacks/saves, the CuteEditor keeps doing the replacement on & with & (e.g. it isn't recognizing that the substitution has already taken place).  In a scenario where the ampersand has already been encoded, the editor should not modify the URL at all.  It seems like the editor logic is doing simple substitution on the string (e.g. replace all & with &) rather than only replacing & where it's not already &
     
    Am I missing something?
     
    Thanks!
    Jeramie

    Regards,
    Jeramie
  •  01-18-2010, 8:37 AM 58234 in reply to 58233

    Re: Apparent bug in Link mailto URL encoding

    Dear jmercker,
     
    I cannot reproduce this issue. Can you reproduce it in http://cutesoft.net/example/general.aspx?  Please tell me the reproduce steps.
     
    Regards,
    Eric 
  •  01-18-2010, 2:53 PM 58246 in reply to 58234

    Re: Apparent bug in Link mailto URL encoding

    Hi Eric,
     
    I can repro it at the location you provided.  Here are the steps to repro.
     
    1) Select any text you want in the demo + then use the link toolbar button to hyperlink the text. 
     
    2) For the link, use this:  mailto:someone@somesite.com?Subject=Website Order&Body=PLACEHOLDER%0APoster 003%0ABe Conscious of Your Work Environment
     
    3) Save the link and note the ampersand between Order and Body.
     
    4) Click the save button on the toolbar.
     
    5) Open the properties for the link created in #2.  Note that the & between Order and Body has now become &
     
    6) Close the link properties dialog and click the Save toolbar button again.
     
    7) Repeat 5 + 6, but note that the previous & has now become &
     
    8) If you continue to click the save button and check the link properties, you'll see that the ampersand replacement will continue on N times where N is the number of times you click the save button.  In the above scenario, the & should only have been replaced once.
     
    This is causing a problem in one of our projects as the substitution behavior is causing the Body portion of the mailto link to be ignored by the mail client.  If W3C has a recommendation on mailto links, I'd like us to be able to follow that recommendation, but still have the link work.  I think that if you can fix the substitution behavior, we'll get the best of both worlds.
     
    Thanks!
     
    Jeramie

    Regards,
    Jeramie
  •  05-07-2010, 10:05 AM 60806 in reply to 58246

    Re: Apparent bug in Link mailto URL encoding

    Has any solution or work around come out for this?  I am running into the same problem with our system.
     
    I can live with disabling the mailto encoding if that will solve the problem.
     
    Thank you
    Andrew
  •  05-07-2010, 12:04 PM 60812 in reply to 60806

    Re: Apparent bug in Link mailto URL encoding

    andrewtaft:
    Has any solution or work around come out for this?  I am running into the same problem with our system.
     
    I can live with disabling the mailto encoding if that will solve the problem.
     
    Thank you
    Andrew

    Andrew,
     
    We are investigating this issue and for the time being please set EnableAntiSpamEmailEncoder property false.
    http://richtextbox.com/test/EnableAntiSpamEmailEncoder.aspx

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-27-2013, 11:39 PM 76944 in reply to 60812

    Re: Apparent bug in Link mailto URL encoding

    Sorry to resurect this issue but this bug is still present in version 6.6. Disabling the AntiSpamEmailEncoder is a work-around but it hasn't been fixed in over 2 years. We have many Cute Editors in our system and would like to utilize the anti-spam functionality. Please find a solution. (FYI - our problem is slightly different as we are seing "mailto:" being HTML-encoded and repeated over and over instead of "amp;" being repeated, but it is a similar situation and likely due to the same bug).
  •  04-29-2013, 7:10 AM 77323 in reply to 76944

    Re: Apparent bug in Link mailto URL encoding

    Has this been resolved? I'm still having the same issue with applicaiton hosted on windows 2008 server. Its running fine on windows 2003.
  •  04-29-2013, 8:09 PM 77330 in reply to 77323

    Re: Apparent bug in Link mailto URL encoding

    I can no longer reproduce this bug in the latest build of 6.6. It also appears to be absent in RTE 8.0.
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.