mirror of https://github.com/apache/cloudstack.git
Fix case where str is not present
This commit is contained in:
parent
2e1726cb5f
commit
8e4ed4bfaf
|
|
@ -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…
Reference in New Issue