mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix case where str is not present
This commit is contained in:
parent
a1e85cdd6d
commit
c5e726be90
@ -61,6 +61,8 @@
|
||||
* Strip unwanted characters from user-based input
|
||||
*/
|
||||
cloudStack.sanitize = window._s = function(str) {
|
||||
if (!str) return '';
|
||||
|
||||
var sanitized = str
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user