• Attachmnets with single quote ( ' ) generate javascript errors

    By Dimitris Ilaridis 2 decades ago

    When you attach a file and filename contains a single quote (apostrophe ( ' )) a Javascript error created when you view the topic. Either restrict users from attaching files with single quote (apostrophe) or "escape" the single quote (apostrophe) on the javascript generation code.

    • Same problem with Usernames containing single quote (apostrophe)

      By Dimitris Ilaridis 2 decades ago

      On the same note, usernames with single quote (apostrophe) (for example "John O'Marra") generate Javascript errors. The solution would be to "escape" the single quote in the Javascript code.

    • [PATCH]

      By Jean-Baptiste Mardelle 2 decades ago

      I have been able to fix the problem of file attachments with quotes (') in the name by opening the ntf forum file in Domino Designer and in the Views->WebBoardSub, the last object called Untitled (Column), you will find a line like this:



      Attachments := @If(@Attachments=0 ; "" ; @Implode(@AttachmentNames +"#" +@Text(@Round(@AttachmentLengths/1000));""));



      Just add the following line after it:



      Attachments:=@ReplaceSubstring(Attachments;"'";"\'");



      And it works! (at least for me)