From 43b257a3485d5e90003d8b286264e82955d98aee Mon Sep 17 00:00:00 2001
From: Ye Tian <yetian@student.unimelb.edu.au>
Date: Sun, 31 May 2020 14:57:12 +0800
Subject: [PATCH] little change on other person id url getting method

---
 src/jdbc.properties               | 2 +-
 web/js/Project/project_display.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/jdbc.properties b/src/jdbc.properties
index a2bb72e..9314c2d 100644
--- a/src/jdbc.properties
+++ b/src/jdbc.properties
@@ -1,4 +1,4 @@
 url=jdbc:mysql://localhost:3306/eportfolio_database?useUnicode=true&characterEncoding=utf-8&useSSL=false
 user=root
-password=1234
+password=root
 driver=com.mysql.jdbc.Driver
\ No newline at end of file
diff --git a/web/js/Project/project_display.js b/web/js/Project/project_display.js
index c529133..42f0f48 100644
--- a/web/js/Project/project_display.js
+++ b/web/js/Project/project_display.js
@@ -9,7 +9,7 @@ var userId = userIdStr.split("=")[1];
 var url = window.location.href;
 var urlArray = url.split("id=");
 var otheruserId = 0;
-if(urlArray.length > 0) otheruserId = url.split("id=")[1].split("#")[0];
+if(urlArray.length > 1) otheruserId = urlArray[1].split("#")[0];
 
 //加载当前登录用户的project列表
 function getMyProjectList(){
-- 
GitLab