|
Currently the workaround (see https://issues.apache.org/jira/browse/SHINDIG-346?focusedCommentId=12730591&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12730591) to make gadgets.util.sanitizeHtml work in PHP (the Caja Maven dependency is not available and the res:// links in the feature registry do not work therefor) does not work anymore because the linked html-sanitizer.js from the Caja trunk depends on the html4 package now.
This dependency is only resolved after building the minified JS files.
In order to fix this issue I built the files linked in the feature registry and put them under php/external/resources/. The PHP GadgetFeatureRegistry now resolves all res:// links to be included through a child class of the FilesServlet which then loads the correct file out of the external package.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2957 lines, -36 lines) |
Patch |
|
|
php/NOTICE
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
|
php/config/container.php
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
|
php/config/container.php
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
|
php/external/resources/com/google/caja/plugin/domita-minified.js
|
View
|
|
1 chunk |
+768 lines, -0 lines |
0 comments
|
Download
|
|
|
php/external/resources/com/google/caja/plugin/domita-minified.js
|
View
|
|
1 chunk |
+768 lines, -0 lines |
0 comments
|
Download
|
|
|
php/external/resources/com/google/caja/plugin/html-sanitizer-minified.js
|
View
|
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
|
|
php/external/resources/com/google/caja/plugin/html-sanitizer-minified.js
|
View
|
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
|
|
php/external/resources/com/google/caja/plugin/valija.out.js
|
View
|
|
1 chunk |
+453 lines, -0 lines |
0 comments
|
Download
|
|
|
php/external/resources/com/google/caja/plugin/valija.out.js
|
View
|
|
1 chunk |
+453 lines, -0 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/GadgetFeatureRegistry.php
|
View
|
|
3 chunks |
+25 lines, -10 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/GadgetFeatureRegistry.php
|
View
|
1
|
1 chunk |
+23 lines, -12 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/servlet/ContentFilesServlet.php
|
View
|
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/servlet/ContentFilesServlet.php
|
View
|
1
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/servlet/FilesServlet.php
|
View
|
|
2 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/servlet/FilesServlet.php
|
View
|
|
2 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/servlet/ResourcesFilesServlet.php
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
|
php/src/gadgets/servlet/ResourcesFilesServlet.php
|
View
|
1
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
|
php/test/ShindigAllTests.php
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
|
php/test/ShindigAllTests.php
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
|
php/test/gadgets/FilesServletTest.php
|
View
|
|
1 chunk |
+107 lines, -0 lines |
0 comments
|
Download
|
|
|
php/test/gadgets/FilesServletTest.php
|
View
|
|
1 chunk |
+107 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3
|