@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | - echo phpinfo(); |
|
3 | - ?> |
|
4 | 2 | \ No newline at end of file |
3 | + echo phpinfo(); |
|
4 | + ?> |
|
5 | 5 | \ No newline at end of file |
@@ -61,5 +61,5 @@ |
||
61 | 61 | echo 'Authorization declined'; |
62 | 62 | exit; |
63 | 63 | } |
64 | - } |
|
64 | + } |
|
65 | 65 | ?> |
66 | 66 | \ No newline at end of file |
@@ -132,5 +132,5 @@ |
||
132 | 132 | header("Access-Control-Allow-Methods: GET,POST"); |
133 | 133 | echo(""); |
134 | 134 | break; |
135 | - } |
|
136 | - ?> |
|
137 | 135 | \ No newline at end of file |
136 | + } |
|
137 | + ?> |
|
138 | 138 | \ No newline at end of file |
@@ -127,4 +127,4 @@ |
||
127 | 127 | break; |
128 | 128 | } |
129 | 129 | |
130 | - ?> |
|
130 | + ?> |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $json = json_encode($result, JSON_PRETTY_PRINT); |
42 | 42 | echo($json); |
43 | 43 | } |
44 | - break; |
|
44 | + break; |
|
45 | 45 | case 'POST': |
46 | 46 | //must contain access token to get logged in content |
47 | 47 | header("Accept: application/json"); |
@@ -71,4 +71,4 @@ discard block |
||
71 | 71 | echo(""); |
72 | 72 | break; |
73 | 73 | } |
74 | - ?> |
|
75 | 74 | \ No newline at end of file |
75 | + ?> |
|
76 | 76 | \ No newline at end of file |
@@ -106,4 +106,4 @@ |
||
106 | 106 | break; |
107 | 107 | } |
108 | 108 | |
109 | - ?> |
|
110 | 109 | \ No newline at end of file |
110 | + ?> |
|
111 | 111 | \ No newline at end of file |
@@ -6,14 +6,14 @@ |
||
6 | 6 | |
7 | 7 | class SpecialCharacterHandler{ |
8 | 8 | |
9 | - /** |
|
10 | - * @param string $string |
|
11 | - * @return string $fixedString |
|
12 | - */ |
|
13 | - public function removeSpecialCharacters($string){ |
|
14 | - $forbiddenCharacters = array("*","/","\\","?","[","]"); |
|
15 | - $fixedString = str_replace($forbiddenCharacters, "", $string); |
|
16 | - return $fixedString; |
|
17 | - } |
|
9 | + /** |
|
10 | + * @param string $string |
|
11 | + * @return string $fixedString |
|
12 | + */ |
|
13 | + public function removeSpecialCharacters($string){ |
|
14 | + $forbiddenCharacters = array("*","/","\\","?","[","]"); |
|
15 | + $fixedString = str_replace($forbiddenCharacters, "", $string); |
|
16 | + return $fixedString; |
|
17 | + } |
|
18 | 18 | } |
19 | 19 | ?> |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | |
190 | 190 | } |
191 | 191 | |
192 | - public static function getOpenIdUserFromJWT($jwt) { |
|
192 | + public static function getOpenIdUserFromJWT($jwt) { |
|
193 | 193 | if (self::validateJWT($jwt, null)) { |
194 | 194 | $openId = self::getPayloadFromToken($jwt); |
195 | 195 | if ($openId['sub']) { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | } |
200 | 200 | } |
201 | 201 | return null; |
202 | - } |
|
202 | + } |
|
203 | 203 | |
204 | 204 | public static function isExpired($exp){ |
205 | 205 | return false; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * @param ApplicationMicroReference[] $references |
33 | 33 | */ |
34 | 34 | public static function getApplicationMicroReferencesForJobApplication($jobPosterApplicationId, $locale) { |
35 | - $link = BaseDAO::getConnection(); |
|
35 | + $link = BaseDAO::getConnection(); |
|
36 | 36 | |
37 | 37 | $sqlStr = " |
38 | 38 | SELECT |