Skip to content

Commit

Permalink
Merge pull request #7086 from nextcloud/backport/7084/stable-3.14
Browse files Browse the repository at this point in the history
[stable-3.14] do not ignore paths containing 2 "#" characters
  • Loading branch information
mgallien authored Sep 9, 2024
2 parents 42daba2 + 297cdec commit 815cbd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/gui/ignorelisttablewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ void IgnoreListTableWidget::readIgnoreFile(const QString &file, bool readOnly)
while (!ignores.atEnd()) {
QString line = QString::fromUtf8(ignores.readLine());
line.chop(1);
if (line == QStringLiteral("\\#*#")) {
continue;
}
if (!line.isEmpty() && !line.startsWith("#")) {
bool deletable = false;
if (line.startsWith(']')) {
Expand Down
1 change: 0 additions & 1 deletion sync-exclude.lst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@ System Volume Information

My Saved Places.

\#*#

*.sb-*
2 changes: 0 additions & 2 deletions test/testexcludedfiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ private slots:
QVERIFY(excluded.isExcluded("/a/foo_conflict-bar", "/a", keepHidden));
QVERIFY(excluded.isExcluded("/a/foo (conflicted copy bar)", "/a", keepHidden));
QVERIFY(excluded.isExcluded("/a/.b", "/a", excludeHidden));

QVERIFY(excluded.isExcluded("/a/#b#", "/a", keepHidden));
}

void check_csync_exclude_add()
Expand Down

0 comments on commit 815cbd5

Please sign in to comment.