From be63c460b84c694dbae10494e491256bd53a5c0b Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Fri, 25 Sep 2009 12:21:05 +1000 Subject: Stop qdoc outputting meaningless paths in html comments. qdoc was generating the full path to the source document in a comment at the top of each generated html file. For source packages the path is a temporary directory that only exists during package generation. The path also usually contains the Unix username of the user who generated the package, and we shouldn't leak usernames for security and privacy reasons. This commit changes the code to write just the filename of the source document into the comment instead of the full path. Reviewed-by: Lincoln Ramsay --- tools/qdoc3/htmlgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index f9d0ba2..5dfff27 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1494,7 +1494,7 @@ void HtmlGenerator::generateHeader(const QString& title, if ((project != "Qtopia") && (project != "Qt Extended")) { shortVersion = project + " " + shortVersion + ": "; if (node && !node->doc().location().isEmpty()) - out() << "\n"; + out() << "\n"; shortVersion = tre->version(); if (shortVersion.count(QChar('.')) == 2) -- cgit v0.12