From fa0e3653759227a30bd69e4e1c6f4b5379d652e6 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 27 Oct 2015 11:33:23 +0100 Subject: [PATCH 1/2] fix sql-Statement in createPasswordRequest() (Closes #236) --- SeedDMS_Core/Core/inc.ClassDMS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SeedDMS_Core/Core/inc.ClassDMS.php b/SeedDMS_Core/Core/inc.ClassDMS.php index 7d4fddf67..f5470c4a9 100644 --- a/SeedDMS_Core/Core/inc.ClassDMS.php +++ b/SeedDMS_Core/Core/inc.ClassDMS.php @@ -1591,7 +1591,7 @@ class SeedDMS_Core_DMS { */ function createPasswordRequest($user) { /* {{{ */ $hash = md5(uniqid(time())); - $queryStr = "INSERT INTO tblUserPasswordRequest (userID, hash, `date`) VALUES (" . $user->getId() . ", " . $this->db->qstr($hash) .", ".$db->getCurrentDatetime().")"; + $queryStr = "INSERT INTO tblUserPasswordRequest (userID, hash, `date`) VALUES (" . $user->getId() . ", " . $this->db->qstr($hash) .", ".$this->db->getCurrentDatetime().")"; $resArr = $this->db->getResult($queryStr); if (is_bool($resArr) && !$resArr) return false; return $hash; From aa1f10af1c6b7c8b931f959a8a9305af753eceae Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 27 Oct 2015 11:41:02 +0100 Subject: [PATCH 2/2] add word-break class to output of orig filename breaking long filenames will leave more space for the preview image --- styles/bootstrap/application.css | 4 ++++ views/bootstrap/class.ViewDocument.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/styles/bootstrap/application.css b/styles/bootstrap/application.css index c4e775da1..70c47bb5f 100644 --- a/styles/bootstrap/application.css +++ b/styles/bootstrap/application.css @@ -45,6 +45,10 @@ ul.tree, ul.tree ul { margin-left: 20px; } +.wordbreak { + word-break: break-word; +} + .btn-file { position: relative; overflow: hidden; diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 62936d17a..40cfc854b 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -377,7 +377,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { print "\n"; print "