Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cards with Spaces don't upload correctly. #13

Open
dite opened this issue Mar 24, 2016 · 0 comments
Open

Cards with Spaces don't upload correctly. #13

dite opened this issue Mar 24, 2016 · 0 comments
Labels

Comments

@dite
Copy link

dite commented Mar 24, 2016

At the moment, it seems like cards with spaces in them (such as mc-Cassandra Jane), give errors when trying to upload--file_get_contents doesn't seem to work well with spaces. The quickfix I came up with was changing adding rawurlencode for the card:

class_lib.php > Line 239:
$imgurl = ''.$defaultauto.''.rawurlencode($card).'.'.$format.'';

I haven't done enough research to see if it's the BEST way to do it, but it worked (since it only applied to $imgurl, it sends it out in a way file_get_contents understands (with %20 instead of spaces), but saves it with the original name.

@tooblue tooblue added the bug label Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants