aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-01-18 11:05:18 +0100
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-01-18 11:05:18 +0100
commit8b997791819ba419e7e2ceb7861bb0e3e37d87dd (patch)
tree78b75c13632e9fcaa32f281fb23dcfcd841cf0e1 /boot.php
parentb5c9f80919bd8678521c31913eeb08ccc56914dd (diff)
parent028460a5c1de4833bb1dcfaa945c1292952bf923 (diff)
downloadvolse-hubzilla-8b997791819ba419e7e2ceb7861bb0e3e37d87dd.tar.gz
volse-hubzilla-8b997791819ba419e7e2ceb7861bb0e3e37d87dd.tar.bz2
volse-hubzilla-8b997791819ba419e7e2ceb7861bb0e3e37d87dd.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index 9715f9cfd..85e159883 100644
--- a/boot.php
+++ b/boot.php
@@ -2,8 +2,8 @@
set_time_limit(0);
-define ( 'BUILD_ID', 1031 );
-define ( 'FRIENDIKA_VERSION', '2.01.1000' );
+define ( 'BUILD_ID', 1032 );
+define ( 'FRIENDIKA_VERSION', '2.01.1003' );
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
define ( 'EOL', "<br />\r\n" );
@@ -910,7 +910,6 @@ function xmlify($str) {
case "'" :
$buffer .= '&apos;';
break;
-
case "\"" :
$buffer .= '&quot;';
break;
@@ -946,6 +945,11 @@ function unxmlify($s) {
if(! function_exists('hex2bin')) {
function hex2bin($s) {
+ if(! ctype_xdigit($s)) {
+ logger('hex2bin: illegal input: ' . print_r(debug_backtrace(), true));
+ return($s);
+ }
+
return(pack("H*",$s));
}}
@@ -2164,11 +2168,12 @@ function get_birthdays() {
foreach($r as $rr) {
$now = strtotime('now');
- $today = (((strtotime($rr['start']) < $now) && (strtotime($rr['finish']) > $now)) ? true : false);
+ $today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false);
$o .= '<div class="birthday-list" id="birthday-' . $rr['eid'] . '"><a class="sparkle" href="'
. $a->get_baseurl() . '/redir/' . $rr['cid'] . '">' . $rr['name'] . '</a> '
- . day_translate(datetime_convert('UTC', $a->timezone, $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : '') ;
+ . day_translate(datetime_convert('UTC', $a->timezone, $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : '')
+ . '</div>' ;
}
$o .= '</div>';