[ZBX-5629] javascript error if user media contains doublequote Created: 2012 Sep 27  Updated: 2017 May 30  Resolved: 2012 Sep 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.3rc1
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Minor
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: usermedia
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

in user media, enter a string with a doublequote, click add. nothing happens, and js error is thrown

for "user" and just a single doublequote :

[2012-09-27 08:00:11] JavaScript - http://192.168.5.125/2.0/popup_media.php
Inline script compilation
Syntax error at line 53 while loading: expected ')', got 'user'
"userForm",-1,'1',""user"","1-7,00:00-24
--------------------^
[2012-09-27 08:00:14] JavaScript - http://192.168.5.125/2.0/popup_media.php
Inline script compilation
Syntax error at line 53 while loading: expected ')', got <string>
"userForm",-1,'1',""","1-7,00:00-24:00",
--------------------^



 Comments   
Comment by Oleg Egorov (Inactive) [ 2012 Sep 27 ]

RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-5629

Comment by Alexander Vladishev [ 2012 Oct 06 ]

Fixed in pre-2.0.4 r30570 and pre-2.1.0 (trunk) r30571.

Generated at Fri Mar 29 15:17:06 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.