We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello everyone,
Piwik API is not compatible with $http.jsonp in AngularJS.
Docs: http://docs.angularjs.org/api/ng.$http
An API call like :
`````` jsoncallback=JSON_CALLBACK```
will be transform by AngularJS as something like:
jsoncallback=angular.callbacks._0
But the Piwik API doesn't allow '.' in the jsoncallback parameter.
To fix this bug, you just have to change:
/core/DataTable/Renderer/Json.php``` (line 111) ``` #!php if (preg_match('/^[0-9a-zA-Z_]*$/D', $jsonCallback) > 0) { ``` By: ``` #!php if (preg_match('/^[0-9a-zA-Z_.]*$/D', $jsonCallback) > 0) { ``` It would be great :) Thanks Romain Keywords: angularjs,callback,jsonp
The text was updated successfully, but these errors were encountered:
In 96ac588: Fixes #4560: Piwik API can be used with AngularJS JSONP callback Thanks for the report & fix!
Sorry, something went wrong.
Fixes matomo-org#4560: Piwik API can be used with AngularJS JSONP cal…
96ac588
…lback Thanks for the report & fix!
mattab
No branches or pull requests
Hello everyone,
Piwik API is not compatible with $http.jsonp in AngularJS.
Docs: http://docs.angularjs.org/api/ng.$http
An API call like :
`````` jsoncallback=JSON_CALLBACK```
will be transform by AngularJS as something like:
jsoncallback=angular.callbacks._0
But the Piwik API doesn't allow '.' in the jsoncallback parameter.
To fix this bug, you just have to change:
The text was updated successfully, but these errors were encountered: