Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Verify file path is string before reading and rendering - #273

Merged
jlord merged 7 commits into
masterfrom
jl-uncaught-string
Aug 10, 2015
Merged

jlord merged 7 commits into
masterfrom
jl-uncaught-string

Conversation

@jlord

@jlord jlord commented Jul 7, 2015

Copy link
Copy Markdown

This changes getMarkdownSource to first verify @file exists and then further check that the path it contains is a string. This should eliminate uncaught exceptions from trying to read files from paths that aren't strings.

Why aren't paths strings? To be continued...

todo

  • add spec

Closes #264

Comment thread lib/main.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this check is needed anymore, it was probably old and from when deserialization behaved differently.

jlord pushed a commit that referenced this pull request Aug 10, 2015
Verify file path is string before reading and rendering
@jlord
jlord merged commit 42eb71d into master Aug 10, 2015
@jlord
jlord deleted the jl-uncaught-string branch August 10, 2015 16:06
Galadirith added a commit to atom-community/markdown-preview-plus that referenced this pull request Mar 29, 2016
WIP cherry-picked from atom/markdown-preview#273 (existential checks)
and atom/markdown-preview#367 (deserialization).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants