Comments (4)
This is most likely due to trim()'ing the lines down before concatenating multi-lines.
from sg-icalendar.
the bug is here:
protected static function UnfoldLines($content) {
$data = array();
$content = explode("\n", $content);
for( $i=0; $i < count($content); $i++) {
$line = rtrim($content[$i]); // <<---- BUG HERE
BUT I suspect that removing the right trim may cause side effects, particularly with respect to badly formed .ics files which don't wrap at character 76. What do you think?
from sg-icalendar.
Replace the explode(...)
line with $content=preg_split('/\r?\n/',$content);
and it's problem solved.
from sg-icalendar.
cpfair's suggestion did not actually fix it for me, I went with sanddevil and removed the offset of 1 from the $line concatenation. I haven't noticed any side effects yet.
from sg-icalendar.
Related Issues (11)
- Fatal Error with no until rule using SG_iCal_Freq->getNext HOT 3
- Webcal names are not corrected.
- CC licence HOT 4
- Bug in SG_iCal_Freq HOT 1
- PHP Warning SG_iCal_Freq.php HOT 2
- SG_iCal_Duration throws undefined offset errors HOT 1
- Unit tests all fail. HOT 4
- 5 seconds on a core 2 duo E8200 ! - SG_iCal_VTimeZone::getActive() HOT 5
- Timezone ID issue. HOT 1
- Timezone ID issue. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sg-icalendar.