PluginProbe
Import Social Events / 1.8.5
Import Social Events v1.8.5
1.9.1 1.9.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 All 61 releases
← All changes | includes/lib/icalcreator/src/Util/HttpFactory.php +3 -4 trunk1.8.5 View file →
@@ -1,6 +1,5 @@
1 1 <?php
2 -// phpcs:ignoreFile
3 2 /**
4 3 * iCalcreator, the PHP class package managing iCal (rfc2445/rfc5445) calendar information.
5 4 *
6 5 * copyright (c) 2007-2021 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
@@ -104,9 +103,9 @@
104 103 $fileName = self::getFakedFilename();
105 104 }
106 105 $output = $calendar->createCalendar();
107 106 if( $utf8Encode ) {
108 - $output = utf8_encode( $output ); // phpcs:ignore wp_function_not_compatible_with_requires_wp
107 + $output = utf8_encode( $output );
109 108 }
110 109 $fsize = null;
111 110 if( $gzip ) {
112 111 $output = gzencode( $output, 9 );
@@ -129,9 +128,9 @@
129 128 header( self::$headers[3] );
130 129 $cdType = ( $cdType ) ? 4 : 5;
131 130 header( sprintf( self::$headers[$cdType], $fileName ));
132 131 header( self::$headers[6] );
133 - echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
132 + echo $output;
134 133 return true;
135 134 }
136 135
137 136 /**
@@ -144,9 +143,9 @@
144 143 */
145 144 private static function getFakedFilename()
146 145 {
147 146 static $DOTICS = '.ics';
148 - return gmdate(
147 + return date(
149 148 DateTimeFactory::$YmdHis,
150 149 intval( microtime( true ))
151 150 ) . $DOTICS;
152 151 }