- Timestamp:
- Jun 22, 2019 3:01:53 AM (5 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r690 r692 114 114 'date_format' => 'd M Y', 115 115 'time_format' => 'h:i:s A', 116 'lc_date_format' => '%e %b %Y', // Localized date for strftime() https://www.php.net/manual/en/function.strftime.php 117 'lc_time_format' => '%k:%M', // Localized time for strftime() https://www.php.net/manual/en/function.strftime.php 116 118 'sql_date_format' => '%e %b %Y', 117 119 'sql_time_format' => '%k:%i', … … 386 388 // If external request was HTTPS but internal request is HTTP, set $_SERVER['HTTPS']='on', which is used by the application to determine that TLS features should be enabled. 387 389 if (strtolower(getenv('HTTP_X_FORWARDED_PROTO')) == 'https' && strtolower(getenv('REQUEST_SCHEME')) == 'http') { 390 $this->logMsg(sprintf('Detected HTTPS via X-Forwarded-Proto; setting HTTPS=on', null), LOG_DEBUG, __FILE__, __LINE__); 388 391 putenv('HTTPS=on'); // Available via getenv(âŠ) 389 392 isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] = 'on'; // Available via $_SERVER[âŠ] … … 1444 1447 } 1445 1448 1446 if ( !$url) {1449 if ('' == $url) { 1447 1450 // If URL is not specified, use the redirect_home_url. 1448 1451 $url = $this->getParam('redirect_home_url'); … … 1462 1465 1463 1466 // End application. 1464 // Recommended, although I'm not sure it's necessary: http ://cn2.php.net/session_write_close1467 // Recommended, although I'm not sure it's necessary: https://www.php.net/session_write_close 1465 1468 $this->stop(); 1466 1469 die; -
trunk/lib/Auth_SQL.inc.php
r690 r692 433 433 return false; 434 434 } 435 436 // TODO: log all auth attempts to db_login_table, not just successful ones. Then, rate-limit login attempts. 435 437 436 438 // Check given password against hashed DB password.
Note: See TracChangeset
for help on using the changeset viewer.