Commit 7ebc07f
committed
Security fixes and Plugin Guidelines compliance - v1.3.1
CRITICAL FIXES:
- Add escapeHtml() to prevent XSS attacks from user content
- Escape all user input in innerHTML (file names, note content)
- Remove detachLeavesOfType() from onunload() per Obsidian guidelines
CHANGES:
- Version bump to 1.3.1
- Security hardening for user-generated content display
- Improved resource management during plugin unload
Complies with Obsidian Plugin Guidelines:
https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines1 parent f8d3f42 commit 7ebc07f
4 files changed
+29
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
850 | 853 | | |
851 | 854 | | |
852 | 855 | | |
853 | 856 | | |
854 | 857 | | |
| 858 | + | |
855 | 859 | | |
856 | | - | |
| 860 | + | |
857 | 861 | | |
858 | | - | |
| 862 | + | |
859 | 863 | | |
860 | 864 | | |
861 | 865 | | |
| |||
925 | 929 | | |
926 | 930 | | |
927 | 931 | | |
| 932 | + | |
| 933 | + | |
928 | 934 | | |
929 | | - | |
| 935 | + | |
930 | 936 | | |
931 | 937 | | |
932 | 938 | | |
| |||
1205 | 1211 | | |
1206 | 1212 | | |
1207 | 1213 | | |
1208 | | - | |
1209 | 1214 | | |
1210 | 1215 | | |
1211 | 1216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
676 | 685 | | |
677 | 686 | | |
678 | 687 | | |
679 | 688 | | |
680 | 689 | | |
681 | 690 | | |
682 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
683 | 695 | | |
684 | | - | |
| 696 | + | |
685 | 697 | | |
686 | | - | |
| 698 | + | |
687 | 699 | | |
688 | 700 | | |
689 | 701 | | |
| |||
777 | 789 | | |
778 | 790 | | |
779 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
780 | 795 | | |
781 | | - | |
| 796 | + | |
782 | 797 | | |
783 | 798 | | |
784 | 799 | | |
| |||
0 commit comments