Mikescher / AlephNote

Lightweight note taking client for Simplenote or Standard Notes (or simply local storage)
https://mikescher.github.io/AlephNote/
MIT License
195 stars 20 forks source link

Error parsing filename with special chars #206

Open void285 opened 2 years ago

void285 commented 2 years ago

With local folder sync enabled, I found files with special chars in filename will cause error, %2F%2F UserScript for example, details as below:

System.FormatException: Additional non-parsable characters are at the end of the string.
   at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
   at System.Convert.ToInt32(String value, Int32 fromBase)
   at MSHC.Util.Helper.FilenameHelper.ConvertStringFromFilenameBack(String input)
   at AlephNote.Common.Operations.RawFolderRepository.<EnumerateFolder>d__21.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at AlephNote.Common.Operations.RawFolderRepository.DoSyncThreaded(Stopwatch sw, Int64 t1, List`1 entriesNoteRepo, Dictionary`2 realNoteMapping)
   at AlephNote.Common.Operations.RawFolderRepository.
Mikescher commented 1 year ago

Hmm ok I will look into it