Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

JsonViewModel causes double-slash when returning file paths #141

Open
bogal opened this issue Oct 22, 2017 · 2 comments
Open

JsonViewModel causes double-slash when returning file paths #141

bogal opened this issue Oct 22, 2017 · 2 comments

Comments

@bogal
Copy link

bogal commented Oct 22, 2017

As per the title, when setting a variable to the view that contains a file path, the directory separators are escaped resulting in a double-slash in the returned response body (on win 10 running zend server 9). Is there any way to set the view to use the constant JSON_UNESCAPED_SLASHES?

@samsonasik
Copy link
Contributor

you may need to extends the JsonModel and override the serialize() function

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-view; a new issue has been opened at laminas/laminas-view#9.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants