Bug 8596 - Allowed HTML syntax for attributes is incorrect
Allowed HTML syntax for attributes is incorrect
Status: RESOLVED FIXED
Product: OMP
Classification: Unclassified
Component: User Interface
1.1.1
All All
: P3 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-07 12:12 PST by Alec Smecher
Modified: 2014-03-12 15:19 PDT (History)
0 users

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Smecher 2014-03-07 12:12:57 PST
See http://pkp.sfu.ca/support/forum/viewtopic.php?f=40&t=11743 for a description of the issue.
Comment 1 Alec Smecher 2014-03-07 12:14:08 PST
The syntax for the allowed_html configuration directive in config.inc.php should follow http://htmlpurifier.org/live/configdoc/plain.html#HTML.Allowed -- thus the default configuration should be...

allowed_html = "a[href|target],em,strong,cite,code,ul,ol,li,dl,dt,dd,b,i,u,img[src|alt],sup,sub,br,p"
Comment 2 Alec Smecher 2014-03-07 12:16:01 PST
Fix allowed_html template
https://github.com/pkp/omp/commit/3ce32c299464b2474a518aaedd1e24950a09f420
Comment 3 Alec Smecher 2014-03-07 12:17:02 PST
Fix allowed_html template
https://github.com/pkp/ojs/commit/a0f85dec12fd3f95d6b41007c315dd0304fd801c
Comment 4 Alec Smecher 2014-03-12 15:19:02 PDT
Fix allowed_html template
https://github.com/pkp/omp/commit/ef1dd3db31b8bc99260e96df4a556fe684713f43