Skip to content

Commit 44a05b5

Browse files
committed
Support for HTML bookmark sync closes #17
1 parent 539a587 commit 44a05b5

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

LoFloccus/LoFloccus.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FORMS += \
2626
lofloccus.ui
2727

2828
# Generic for all builds
29-
VERSION = 1.2.3
29+
VERSION = 1.2.4
3030
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
3131
INCLUDEPATH += $${PWD}/libs
3232

LoFloccus/LoFloccus.pro.user

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE QtCreatorProject>
3-
<!-- Written by QtCreator 4.11.1, 2022-04-01T16:20:49. -->
3+
<!-- Written by QtCreator 4.11.1, 2022-08-24T21:13:29. -->
44
<qtcreator>
55
<data>
66
<variable>EnvironmentId</variable>
@@ -287,8 +287,9 @@
287287
</valuelist>
288288
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
289289
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
290-
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/Tadeu Bento/Projetos/LoFloccus/LoFloccus/LoFloccus.pro</value>
291-
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">C:/Users/Tadeu Bento/Projetos/LoFloccus/LoFloccus/LoFloccus.pro</value>
290+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">LoFloccus2</value>
291+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/Tadeu Bento/Source/GitHub/LoFloccus/LoFloccus/LoFloccus.pro</value>
292+
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">C:/Users/Tadeu Bento/Source/GitHub/LoFloccus/LoFloccus/LoFloccus.pro</value>
292293
<value type="QString" key="RunConfiguration.Arguments"></value>
293294
<value type="bool" key="RunConfiguration.Arguments.multi">false</value>
294295
<value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value>
@@ -299,7 +300,7 @@
299300
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
300301
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
301302
<value type="QString" key="RunConfiguration.WorkingDirectory"></value>
302-
<value type="QString" key="RunConfiguration.WorkingDirectory.default"></value>
303+
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/Tadeu Bento/Projetos/LoFloccus/build-LoFloccus-Desktop_Static-Release</value>
303304
</valuemap>
304305
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
305306
</valuemap>

LoFloccus/libs/libLoFloccusDav.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func serverStart(configAddress *C.char, configPort *C.char, configDir *C.char, c
8383
}
8484

8585
// Restrict WebDav to the current folder & read/writes to .xbel files
86-
if (!strings.HasSuffix(request.RequestURI, ".xbel") && !strings.HasSuffix(request.RequestURI, ".xbel.lock") && request.RequestURI != "/") || (request.RequestURI == "/" && (request.Method != "HEAD" && request.Method != "PROPFIND")) {
86+
if (!strings.HasSuffix(request.RequestURI, ".xbel") && !strings.HasSuffix(request.RequestURI, ".xbel.lock") && !strings.HasSuffix(request.RequestURI, ".html") && !strings.HasSuffix(request.RequestURI, ".htm") && request.RequestURI != "/" ) || (request.RequestURI == "/" && (request.Method != "HEAD" && request.Method != "PROPFIND")) {
8787
errorFsAccessMsg := "LoFloccus: unauthorized filesystem access detected. LoFloccus WebDAV server is restricted to '*.xbel' and '*.xbel.lock' files."
8888
log.Printf(request.RequestURI)
8989
log.Printf(request.Method)
0 Bytes
Binary file not shown.
1.18 KB
Binary file not shown.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Sync Floccus to a Local Folder!
1010

1111
## Download LoFloccus
1212

13-
- **Windows**: https://github.com/TCB13/LoFloccus/releases/download/1.2.3/LoFloccus-1-2-3-Win.zip
14-
- **macOS**: https://github.com/TCB13/LoFloccus/releases/download/1.2.3/LoFloccus-1-2-3-macOS.zip
13+
- **Windows**: https://github.com/TCB13/LoFloccus/releases/download/1.2.4/LoFloccus-1-2-4-Win.zip
14+
- **macOS**: https://github.com/TCB13/LoFloccus/releases/download/1.2.4/LoFloccus-1-2-4-macOS.zip
1515

1616
## Why and How
1717

@@ -21,9 +21,9 @@ Due to browser restrictions, you can't store your browser bookmarks in a local f
2121

2222
This tool was designed to:
2323
1) Accept WebDAV connections from the Floccus;
24-
2) Restrict Floccus access to a single directory and read/write access limited to `*.xbel` bookmarks files;
24+
2) Restrict Floccus access to a single directory and read/write access limited to `*.xbel` and `*.html` bookmarks files;
2525
3) Generate a random port, username and password for each setup;
26-
4) Store your XBEL bookmarks location and other settings across sessions;
26+
4) Store your XBEL/HTML bookmarks location and other settings across sessions;
2727
5) Minimize to Windows tray / macOS top menu bar.
2828

2929
Enjoy the best of Floccus and combine it with favourite sync tool!

0 commit comments

Comments
 (0)