The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.6
Apache version: 2.0.x
PHP version (don't just say PHP 4, please): 4.2.x
Graphics Toolkit:
Operating system: FreeBSD
Web browser/version (if applicable):
Dear all,
I tried to add some javascript at "Album Summary" (after admin login-> select 'properties' at 'Album Action' -> 'Texts'). After edited the text, it seem Gallery will delete all javascript code and also change '"' to '"', which will cause the '"' appear repeatedly after next edit .
I would like to ask that can i add javascript at "Album Summary"? Also how to solve the '"' problem?
Thx for helping
Posts: 6818
Hi,
Since Gallery 1.5.3 we forbid Javascript in any inputfield as its a potentiell security risc.
You need to edit classes/HTML_Safe/Safe.php to allow it again.
About the @quot thing: Can you give me the URL to a phpinfo of your server?
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 10
thx for fast reply
I treid to edit classes/HTML_Safe/Safe.php, and just found 'javascript' at $blackProtocols and at no javascript at $deleteTags. So should i delete 'javascript' at $blackProtocols?
Posts: 6818
Hello,
just delete 'scripts' from $deleteTags and $deleteTagsContent.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 10
Thx, it work.
Posts: 10
And here is the phpinfo.
sorry that it is using Apache 2.x and PHP 4.3.x
Posts: 6818
Thats not really the phpinfo i mean ;-)
Jens
--
Last Gallery v1 Developer and v1 translation manager.