diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2009-09-25 02:21:05 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-09-25 02:21:05 (GMT) |
commit | be63c460b84c694dbae10494e491256bd53a5c0b (patch) | |
tree | b59e2d54434e40be936d7c4f98662ece26a0c305 | |
parent | 856b36f49b567a1573d119b5606300c07649b443 (diff) | |
download | Qt-be63c460b84c694dbae10494e491256bd53a5c0b.zip Qt-be63c460b84c694dbae10494e491256bd53a5c0b.tar.gz Qt-be63c460b84c694dbae10494e491256bd53a5c0b.tar.bz2 |
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
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() << "<!-- " << node->doc().location().filePath() << " -->\n"; + out() << "<!-- " << node->doc().location().fileName() << " -->\n"; shortVersion = tre->version(); if (shortVersion.count(QChar('.')) == 2) |