History

Case 19754 - Remove logging URLs and related file locations.

The goal is to strip out data that can be used by untoward users in copying models, avatars, etc.

Roxanne Skelly committed 8 years ago

Commit cef70001 parent e80468e36 files · +84 −201Browse files

Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 36 files). Show all

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+1−10
@@ -38,10 +38,7 @@ FileScriptingInterface::FileScriptingInterface(QObject* parent) : QObject(parent · 37 unmodified lines
3838 }
3939
4040 void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool isZip, bool isBlocks) {
41− qCDebug(scriptengine) << "Url that was downloaded: " + url.toString();
42− qCDebug(scriptengine) << "Path where download is saved: " + path;
4341 QString fileName = "/" + path.section("/", -1);
44− qCDebug(scriptengine) << "Filename: " << fileName;
4542 QString tempDir = path;
4643 if (!isZip) {
4744 tempDir.remove(fileName);
@@ -59,9 +56,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 11 unmodified lines
5956
6057 QStringList fileList = unzipFile(path, tempDir);
6158
62− if (!fileList.isEmpty()) {
63− qCDebug(scriptengine) << "First file to upload: " + fileList.first();
64− } else {
59+ if(fileList.isEmpty()) {
6560 qCDebug(scriptengine) << "Unzip failed";
6661 }
6762
@@ -131,7 +126,6 @@ QString FileScriptingInterface::convertUrlToPath(QUrl url) { · 63 unmodified lines
131126 QString newUrl;
132127 QString oldUrl = url.toString();
133128 newUrl = oldUrl.section("filename=", 1, 1);
134− qCDebug(scriptengine) << "Filename should be: " + newUrl;
135129 return newUrl;
136130 }
137131
@@ -149,14 +143,12 @@ void FileScriptingInterface::downloadZip(QString path, const QString link) { · 11 unmodified lines
149143 // this function is not in use
150144 void FileScriptingInterface::recursiveFileScan(QFileInfo file, QString* dirName) {
151145 /*if (!file.isDir()) {
152− qCDebug(scriptengine) << "Regular file logged: " + file.fileName();
153146 return;
154147 }*/
155148 QFileInfoList files;
156149 // FIXME quazip hasn't been built on the android toolchain
157150 #if !defined(Q_OS_ANDROID)
158151 if (file.fileName().contains(".zip")) {
159− qCDebug(scriptengine) << "Extracting archive: " + file.fileName();
160152 JlCompress::extractDir(file.fileName());
161153 }
162154 #endif
@@ -167,7 +159,6 @@ void FileScriptingInterface::recursiveFileScan(QFileInfo file, QString* dirName) · 4 unmodified lines
167159 }*/
168160
169161 foreach (QFileInfo file, files) {
170− qCDebug(scriptengine) << "Looking into file: " + file.fileName();
171162 recursiveFileScan(file, dirName);
172163 }
173164 return;