epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
290 stars 99 forks source link

Mol file with XSS should be opened correctly as KET file. #1965

Open NadezhdaPeskun opened 1 month ago

NadezhdaPeskun commented 1 month ago

Steps to Reproduce

  1. Switch to Macro
  2. Open file with Chem with injection (like XSS) ketcher (20).zip

image

  1. Save as Mol file ketcher (7).zip

  2. Try to open the mol file again

    image

Actual behavior We can save structure with XSS. We cannot open this file again.

image

Expected behavior Should be the same behavior as for КЕТ file (xss is ignored and visible as text) Chem Structure should be visible as for KET file.

Desktop (please complete the following information):

Ketcher version Version 2.21.0-rc.2 Build at 2024-05-07; 12:32:44

Indigo Toolkit Version 1.20.0-rc.2.0-g111a89f35-wasm32-wasm-clang-12.0.0