projects
/
speedfreak
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed CDATA issue
[speedfreak]
/
Server
/
application
/
views
/
api
/
user_list.php
diff --git
a/Server/application/views/api/user_list.php
b/Server/application/views/api/user_list.php
index
b41e533
..
2b0a335
100644
(file)
--- a/
Server/application/views/api/user_list.php
+++ b/
Server/application/views/api/user_list.php
@@
-2,7
+2,7
@@
<users><?php if (count($list)>0) foreach($list as $user){ ?>
<users><?php if (count($list)>0) foreach($list as $user){ ?>
- <user login="<?php echo $user->username ; ?>" description="<![CDATA[ <?php echo $user->description; ?> ]]>" last_activity="<?php echo $user->last_activity ; ?>" <?php if (isset($avatar)) echo 'avatar="'.$avatar.'" '; ?> />
+ <user login="<?php echo $user->username ; ?>" description="<?php echo htmlentities($user->description); ?>" last_activity="<?php echo $user->last_activity ; ?>" <?php if (isset($avatar)) echo 'avatar="'.$avatar.'" '; ?> />
<?php } ?>
</users>
\ No newline at end of file
<?php } ?>
</users>
\ No newline at end of file