Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSS Mitigation #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ else { ?>
<?php } ?>
<div class="organisation-info-block">
<div class="organisation-logo"><img align="center" class="imgbrdr" style="padding:0px;" src="<?php echo $this->baseUrl("public/uploads/organisation/").$this->dataArray['org_image'];?>" onerror="this.src='<?php echo MEDIA_PATH; ?>images/logo_default.jpg'"/></div>
<div class="organisation-text"><?php $len = strlen($this->dataArray['orgdescription']); echo substr(($this->dataArray['orgdescription']),0,680); ?>
<div class="organisation-text"><?php $len = strlen($this->dataArray['orgdescription']); echo filter_var(substr(($this->dataArray['orgdescription']),0,680),FILTER_SANITIZE_SPECIAL_CHARS); ?>
<span style="display:none;" id="substrData" ><?php echo substr(($this->dataArray['orgdescription']),680,$len); ?>
<a href="javascript:void(0);" onclick="hideData('first');">Less<span class="less-icon"></span></a></span>
<?php if($len >680){ ?><b id='so_on'>...</b>
Expand Down Expand Up @@ -468,4 +468,4 @@ function displayall()
</script>
<?php
}
?>
?>