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

Escape quotes in sandbox placeholders #901

Closed
wants to merge 968 commits into from
Closed

Escape quotes in sandbox placeholders #901

wants to merge 968 commits into from

Conversation

kix
Copy link

@kix kix commented Aug 22, 2016

Previously, having a placeholder with "'s passed lead to HTML attributes getting broken. The first " would just close the attribute, and the placeholder would get broken:

screenshot 2016-08-23 03 20 55

After this fix all placeholders should only have "s instead of ''s, and the placeholder HTML attr is correctly escaped.

stof and others added 30 commits September 10, 2014 14:29
Currently, the testsuite relies on SensioFrameworkExtraBundle 3.x which requires Symfony 2.3+. Given that 2.1 and 2.2 are EOLed, removing them from Travis is simpler than updating the testsuite to support them.
Remove EOLed Symfony versions from Travis
Don't let empty arrays get passed through as defaults.
Update parser to convert empty array defaults to null
Fix parsing of filters, default values and base path in SwaggerFormatter
…ameters-for-put-requests

Fix no required parameters for PUT requests
Honor body format before uploading file type parameters
…Made sure that FieldErrors is not duplicated.
FOSRest integration: Form errors format
Display select to choose http method in sandbox
Fix the PhpDoc Handler for `@link` annotation and add tests
suggested change in nelmio#353 is not working
(avoid triggering warning on IDEs like PhpStorm
Martin Le Guillou and others added 28 commits May 16, 2016 15:59
Allow custom ApiDoc annotation
Links from index.rst to the other doc files
Usage of OUTPUT_RAW to avoid javascript syntax error when dumping HTML
Add navigation index for resources
Allow filter descriptions to be used in conjunction with POST/PUT inp…
Key "statusCodes" for array with keys "method, uri, description, documentation, filters, requirements, parsedResponseMap, https, authentication, authenticationRoles, deprecated, id" does not exist in NelmioApiDocBundle::method.html.twig at line 182.

Sample:

 /**
     * Retrieves the list of categories (paginated) based on criteria.
     *
     * @apidoc(
     *  resource=true,
     *  output={"class"="Sonata\DatagridBundle\Pager\PagerInterface", "groups"={"sonata_api_read"}}
     * )
     *
     *
     * @QueryParam(name="page", requirements="\d+", default="1", description="Page for category list pagination")
     * @QueryParam(name="count", requirements="\d+", default="10", description="Number of categories by page")
     * @QueryParam(name="enabled", requirements="0|1", nullable=true, strict=true, description="Enabled/Disabled categories filter")
     * @QueryParam(name="context", requirements="\S+", nullable=true, strict=true, description="Context of categories")
     *
     * @view(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true)
     *
     * @param ParamFetcherInterface $paramFetcher
     *
     * @return PagerInterface
     */
Fix error: Key "statusCodes" for array with keys...
Previously, having a placeholder with `"`'s passed lead to HTML attributes getting broken. The first `"` would just close the attribute, and the placeholder would get broken. Now, all placeholders should only have `"`s instead of `'`'s, and the `placeholder` HTML attr is correctly escaped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet