Merge pull request #7086 from nextcloud/backport/7084/stable-3.14

[stable-3.14] do not ignore paths containing 2 "#" characters
This commit is contained in:
Matthieu Gallien 2024-09-09 11:23:54 +02:00 committed by GitHub
commit 815cbd5435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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(']')) {

View File

@ -49,6 +49,5 @@ System Volume Information
My Saved Places.
\#*#
*.sb-*

View File

@ -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()