"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/utility.cpp" between
ownCloud-2.9.0.5150.tar.xz and ownCloud-2.9.1.5500.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

utility.cpp  (ownCloud-2.9.0.5150.tar.xz):utility.cpp  (ownCloud-2.9.1.5500.tar.xz)
skipping to change at line 631 skipping to change at line 631
tagEnd = paren + 1; tagEnd = paren + 1;
} }
return conflictName.left(tagStart) + conflictName.mid(tagEnd); return conflictName.left(tagStart) + conflictName.mid(tagEnd);
} }
QString Utility::sanitizeForFileName(const QString &name) QString Utility::sanitizeForFileName(const QString &name)
{ {
const auto invalid = QStringLiteral("/?<>\\:*|\""); const auto invalid = QStringLiteral("/?<>\\:*|\"");
QString result; QString result;
result.reserve(name.size()); result.reserve(name.size());
for (const auto c : name) { for (const auto &c : name) {
if (!invalid.contains(c) if (!invalid.contains(c)
&& c.category() != QChar::Other_Control && c.category() != QChar::Other_Control
&& c.category() != QChar::Other_Format) { && c.category() != QChar::Other_Format) {
result.append(c); result.append(c);
} }
} }
return result; return result;
} }
} // namespace OCC } // namespace OCC
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)