Commit 169df9c7b714ee7c4ea78b1d9fb184bc51a8f583

Authored by Michael Joseph
1 parent 2db02442

added ie ssl hack for historical downloads


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1554 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
@@ -52,7 +52,12 @@ function getDocumentHistory($iDocumentID) { @@ -52,7 +52,12 @@ function getDocumentHistory($iDocumentID) {
52 $i = 0; 52 $i = 0;
53 while ($sql->next_record()) { 53 while ($sql->next_record()) {
54 if ($sql->f("transaction_name") == "Check Out") { 54 if ($sql->f("transaction_name") == "Check Out") {
55 - $sVersion = generateControllerLink("viewDocument", "fDocumentID=$iDocumentID&fForDownload=1&fVersion=" . $sql->f("version"), $sql->f("version")); 55 + // IE ssl download hack- don't use ssl to download
  56 + if ($default->phpSniff->property("browser") == "ie") {
  57 + $sVersion = "<a href=\"http://" . $default->serverName . "$default->rootUrl/control.php?action=viewDocument&fDocumentID=$iDocumentID&fForDownload=1&fVersion=" . $sql->f("version") . "\">" . $sql->f("version") . "</a>";
  58 + } else {
  59 + $sVersion = generateControllerLink("viewDocument", "fDocumentID=$iDocumentID&fForDownload=1&fVersion=" . $sql->f("version"), $sql->f("version"));
  60 + }
56 } else { 61 } else {
57 $sVersion = $sql->f("version"); 62 $sVersion = $sql->f("version");
58 } 63 }