Skip to content

Commit 1a83af6

Browse files
committed
Merge branch 'hotfix-0.3.1.17'
2 parents 05e0d97 + 19aada6 commit 1a83af6

11 files changed

Lines changed: 321 additions & 57 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
# Change Log
22

3+
## v0.3.1.17
4+
5+
- Fix occasional bug when end-of-file is reached on log file before requested number of lines is reached
6+
- Roll back database connection checking to fix installer routines (frostbitten)
7+
- UI fixes for smaller screens (frostbitten)
8+
- Update Gitter references to Rocket.chat
9+
- Clarify hotfix branch procedure for contributions
10+
311
## v0.3.1.16
412

5-
- Fixed comment reference to \Fortress\JqueryValidationAdaptor
6-
- CONTRIBUTING.md - Added note about proper Pull Requests
13+
- Fix comment reference to \Fortress\JqueryValidationAdaptor
14+
- CONTRIBUTING.md - Add note about proper Pull Requests
715
- French language file fixes (#565) (lcharette)
8-
- Added HTTP status codes to 404 errors and database errors (frostbitten)
9-
- Changed database errors to use BaseController instead of DatabaseController (frostbitten)
16+
- Add HTTP status codes to 404 errors and database errors (frostbitten)
17+
- Change database errors to use BaseController instead of DatabaseController (frostbitten)
1018

1119
## v0.3.1.15
1220

@@ -29,11 +37,11 @@
2937
## v0.3.1.12
3038

3139
- Add sendmail support in Notification class
32-
- Fixed problem with strict comparison in Handlebars templates and inconsistent data types among different database technologies
33-
- Overrided paths to font files for Bootstrap Glyphicons to support the UserFrosting directory structure
40+
- Fix problem with strict comparison in Handlebars templates and inconsistent data types among different database technologies
41+
- Override paths to font files for Bootstrap Glyphicons to support the UserFrosting directory structure
3442
- Added missing lines of Thai language (popiazaza)
35-
- Fixed a vulnerability where users still logged in wouldn't automatically be logged out if they were disabled
36-
- Added option for HTTPS in `.htaccess`, commented out by default
43+
- Fix a vulnerability where users still logged in wouldn't automatically be logged out if they were disabled
44+
- Add option for HTTPS in `.htaccess`, commented out by default
3745
- Minor syntax fixes in `public/js/userfrosting.js`, `widget-auth.js`, `widget-groups.js`, and `widget-users.js`
3846

3947
## v0.3.1.11

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ There are also tags for the utilities upon which UserFrosting depends, such as [
1616

1717
In general, the Github issue tracker should only be used for bug reports and feature requests. If you're just having trouble getting something to work, you should ask on Stack Overflow instead. Tag your question with the `userfrosting` tag, and optionally with any tags specific to the relevant underlying technologies, such as `slim`, `twig`, `eloquent`, `composer`, etc. You should also mention the version of UserFrosting that you are using.
1818

19-
After posting a question on Stack Overflow, please [link to it in chat](https://gitter.im/userfrosting/UserFrosting). This will ensure that more people see it, and provide a place where we can discuss and help clarify your question.
19+
After posting a question on Stack Overflow, please [link to it in chat](https://chat.userfrosting.com/). This will ensure that more people see it, and provide a place where we can discuss and help clarify your question.
2020

21-
On Github, Gitter, and Stack Overflow, please keep in mind the following:
21+
On Github, UserFrosting Chat, and Stack Overflow, please keep in mind the following:
2222

2323
1. Remember that courtesy and proper grammar go a long way. Please take the time to craft a **precise, polite issue**. We will do our best to help, but remember that this is an open-source project - none of us are getting paid a salary to develop this project, or act as your personal support hotline :wink:
2424

@@ -36,7 +36,7 @@ You should also try testing your code in a local development environment, to sep
3636

3737
## Pull Requests
3838

39-
When making a pull request, set your "base branch" to the latest hotfix branch being worked on. This will allow us to keep track of which version every change belongs to, which is useful when tracking down other users' issues.
39+
When making a pull request, set your "base branch" to the `hotfix-development` branch. Accepted pull requests will be merged into `master` in batches with a new hotfix number as needed. This will allow us to keep track of which version number every change belongs to, which is useful when tracking down other users' issues.
4040

4141
## ChangeLog
4242

public/css/bootstrap-custom.css

Lines changed: 256 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
@font-face {
1+
@font-face {
22
font-family: 'Glyphicons Halflings';
33

44
src: url('fonts/glyphicons-halflings-regular.eot');
55
src: url('fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('fonts/glyphicons-halflings-regular.woff') format('woff'), url('fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
66
}
77

88
.container-narrow {
9-
width: 800px;
9+
max-width: 800px;
1010
}
1111

1212
.panel-heading-buttons h3 {
@@ -36,3 +36,257 @@ label.label-switch {
3636
form textarea {
3737
resize: vertical; /* user can resize vertically, but width is fixed */
3838
}
39+
40+
/* Utilities from Bootstrap 4 alpha 2. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.2/css/bootstrap.css */
41+
42+
.img-fluid {
43+
display: block;
44+
max-width: 100%;
45+
height: auto;
46+
}
47+
48+
49+
.m-x-auto {
50+
margin-right: auto !important;
51+
margin-left: auto !important;
52+
}
53+
54+
.m-a-0 {
55+
margin: 0 0 !important;
56+
}
57+
58+
.m-t-0 {
59+
margin-top: 0 !important;
60+
}
61+
62+
.m-r-0 {
63+
margin-right: 0 !important;
64+
}
65+
66+
.m-b-0 {
67+
margin-bottom: 0 !important;
68+
}
69+
70+
.m-l-0 {
71+
margin-left: 0 !important;
72+
}
73+
74+
.m-x-0 {
75+
margin-right: 0 !important;
76+
margin-left: 0 !important;
77+
}
78+
79+
.m-y-0 {
80+
margin-top: 0 !important;
81+
margin-bottom: 0 !important;
82+
}
83+
84+
.m-a-1 {
85+
margin: 1rem 1rem !important;
86+
}
87+
88+
.m-t-1 {
89+
margin-top: 1rem !important;
90+
}
91+
92+
.m-r-1 {
93+
margin-right: 1rem !important;
94+
}
95+
96+
.m-b-1 {
97+
margin-bottom: 1rem !important;
98+
}
99+
100+
.m-l-1 {
101+
margin-left: 1rem !important;
102+
}
103+
104+
.m-x-1 {
105+
margin-right: 1rem !important;
106+
margin-left: 1rem !important;
107+
}
108+
109+
.m-y-1 {
110+
margin-top: 1rem !important;
111+
margin-bottom: 1rem !important;
112+
}
113+
114+
.m-a-2 {
115+
margin: 1.5rem 1.5rem !important;
116+
}
117+
118+
.m-t-2 {
119+
margin-top: 1.5rem !important;
120+
}
121+
122+
.m-r-2 {
123+
margin-right: 1.5rem !important;
124+
}
125+
126+
.m-b-2 {
127+
margin-bottom: 1.5rem !important;
128+
}
129+
130+
.m-l-2 {
131+
margin-left: 1.5rem !important;
132+
}
133+
134+
.m-x-2 {
135+
margin-right: 1.5rem !important;
136+
margin-left: 1.5rem !important;
137+
}
138+
139+
.m-y-2 {
140+
margin-top: 1.5rem !important;
141+
margin-bottom: 1.5rem !important;
142+
}
143+
144+
.m-a-3 {
145+
margin: 3rem 3rem !important;
146+
}
147+
148+
.m-t-3 {
149+
margin-top: 3rem !important;
150+
}
151+
152+
.m-r-3 {
153+
margin-right: 3rem !important;
154+
}
155+
156+
.m-b-3 {
157+
margin-bottom: 3rem !important;
158+
}
159+
160+
.m-l-3 {
161+
margin-left: 3rem !important;
162+
}
163+
164+
.m-x-3 {
165+
margin-right: 3rem !important;
166+
margin-left: 3rem !important;
167+
}
168+
169+
.m-y-3 {
170+
margin-top: 3rem !important;
171+
margin-bottom: 3rem !important;
172+
}
173+
174+
.p-a-0 {
175+
padding: 0 0 !important;
176+
}
177+
178+
.p-t-0 {
179+
padding-top: 0 !important;
180+
}
181+
182+
.p-r-0 {
183+
padding-right: 0 !important;
184+
}
185+
186+
.p-b-0 {
187+
padding-bottom: 0 !important;
188+
}
189+
190+
.p-l-0 {
191+
padding-left: 0 !important;
192+
}
193+
194+
.p-x-0 {
195+
padding-right: 0 !important;
196+
padding-left: 0 !important;
197+
}
198+
199+
.p-y-0 {
200+
padding-top: 0 !important;
201+
padding-bottom: 0 !important;
202+
}
203+
204+
.p-a-1 {
205+
padding: 1rem 1rem !important;
206+
}
207+
208+
.p-t-1 {
209+
padding-top: 1rem !important;
210+
}
211+
212+
.p-r-1 {
213+
padding-right: 1rem !important;
214+
}
215+
216+
.p-b-1 {
217+
padding-bottom: 1rem !important;
218+
}
219+
220+
.p-l-1 {
221+
padding-left: 1rem !important;
222+
}
223+
224+
.p-x-1 {
225+
padding-right: 1rem !important;
226+
padding-left: 1rem !important;
227+
}
228+
229+
.p-y-1 {
230+
padding-top: 1rem !important;
231+
padding-bottom: 1rem !important;
232+
}
233+
234+
.p-a-2 {
235+
padding: 1.5rem 1.5rem !important;
236+
}
237+
238+
.p-t-2 {
239+
padding-top: 1.5rem !important;
240+
}
241+
242+
.p-r-2 {
243+
padding-right: 1.5rem !important;
244+
}
245+
246+
.p-b-2 {
247+
padding-bottom: 1.5rem !important;
248+
}
249+
250+
.p-l-2 {
251+
padding-left: 1.5rem !important;
252+
}
253+
254+
.p-x-2 {
255+
padding-right: 1.5rem !important;
256+
padding-left: 1.5rem !important;
257+
}
258+
259+
.p-y-2 {
260+
padding-top: 1.5rem !important;
261+
padding-bottom: 1.5rem !important;
262+
}
263+
264+
.p-a-3 {
265+
padding: 3rem 3rem !important;
266+
}
267+
268+
.p-t-3 {
269+
padding-top: 3rem !important;
270+
}
271+
272+
.p-r-3 {
273+
padding-right: 3rem !important;
274+
}
275+
276+
.p-b-3 {
277+
padding-bottom: 3rem !important;
278+
}
279+
280+
.p-l-3 {
281+
padding-left: 3rem !important;
282+
}
283+
284+
.p-x-3 {
285+
padding-right: 3rem !important;
286+
padding-left: 3rem !important;
287+
}
288+
289+
.p-y-3 {
290+
padding-top: 3rem !important;
291+
padding-bottom: 3rem !important;
292+
}

userfrosting/initialize.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
// This if-block just checks that config-userfrosting.php exists
1313
if (!file_exists(__DIR__ . "/config-userfrosting.php")){
14+
http_response_code(503);
1415
echo "<h2>We can't seem to find config-userfrosting.php! You should rename the file config-userfrosting-example.php to config-userfrosting.php, and then fill in the configuration details for your database and server. For more information, please see the <a href='http://www.userfrosting.com/installation/#install-userfrosting'>installation instructions</a>.</h2><br>";
1516
exit;
1617
}
@@ -146,7 +147,7 @@
146147
'guest_theme' => 'default',
147148
'minify_css' => '0',
148149
'minify_js' => '0',
149-
'version' => '0.3.1.16',
150+
'version' => '0.3.1.17',
150151
'author' => 'Alex Weissman',
151152
'show_terms_on_register' => '1',
152153
'site_location' => 'The State of Indiana'

userfrosting/middleware/usersession/UserSession.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ public function setup(){
9191
// If we can't connect to the DB, then we can't create an authenticated user. That's ok if we're in installation mode.
9292
error_log("Unable to authenticate user because the database is not yet initialized, invalid, or inaccessible. Falling back to guest user.");
9393
error_log($e->getTraceAsString());
94-
$controller = new BaseController($this->app);
95-
return $controller->pageDatabaseError();
94+
95+
// How can we tell we are not in installation mode? Until then, the following code is just staged.
96+
// $controller = new BaseController($this->app);
97+
// return $controller->pageDatabaseError();
9698
}
9799
}
98100
}

userfrosting/models/database/SiteSettings.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,15 @@ static public function getLog($targetLines = null, $seekLen = 4096){
455455
/* If there's no file left to read, return with
456456
what we have. If the amount we want to read
457457
is more than we have left, just take what's left. */
458-
if ($sizeRemaining == 0){
459-
break 1;
460-
} elseif ($seekLen > $sizeRemaining){
461-
if ($sizeRemaining < 0){
462-
$sizeRemaining = 0;
458+
if ($sizeRemaining <= 0){
459+
if ($remainder != ''){
460+
$messages[] = $remainder;
463461
}
464-
$seekLen = $sizeRemaining;
465-
$sizeRemaining = 0;
462+
break 1; // Everything we can read has been read.
463+
}
464+
if ($seekLen > $sizeRemaining){
465+
$seekLen = $sizeRemaining; // Read everything left now
466+
$sizeRemaining = 0; // and mark that nothing is left afterwards.
466467
}
467468
fseek($fileHandle, -$seekLen, SEEK_CUR); // Seek to the point we want to read from
468469
$current = fread($fileHandle, $seekLen) . $remainder; // Attach the remainder from previous loop

0 commit comments

Comments
 (0)