]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
markdown parser: correctly remove src & href attribute if not valid URL
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jun 2023 11:04:14 +0000 (13:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jun 2023 11:41:23 +0000 (13:41 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Parser.js

index fe4a108be77dd725eabe14d4be29e1aa2d156647..0a4423025dcde8f9969421c5fd594de3cc950d64 100644 (file)
@@ -38,7 +38,7 @@ Ext.define('Proxmox.Markdown', {
                            node.attributes.removeNamedItem(name);
                        }
                    } catch (e) {
-                       node.attributes[i].removeNamedItem(name);
+                       node.attributes.removeNamedItem(name);
                    }
                }
            }