Skip to content

Commit

Permalink
Fixed issue #06205: Add http:// by default to endurl for indication
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jun 13, 2012
1 parent ef300ee commit 16302e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/models/Surveys_languagesettings.php
Expand Up @@ -147,7 +147,7 @@ function updateRecords($data,$condition=FALSE, $xssfiltering = false)
{
$this->db->where($condition);
}

if (isset($data['surveyls_url']) && $data['surveyls_url']== 'http://') {$data['surveyls_url']="";}
if($xssfiltering)
{
$filter = new CHtmlPurifier();
Expand Down
4 changes: 2 additions & 2 deletions application/views/admin/survey/editLocalSettings_view.php
Expand Up @@ -15,7 +15,7 @@
<?php echo getEditor("survey-endtext","endtext_".$esrow['surveyls_language'], "[".$clang->gT("End message:", "js")."](".$esrow['surveyls_language'].")",$surveyid,'','',$action); ?>
</li>
<li><label for='url_<?php echo $esrow['surveyls_language']; ?>'><?php $clang->eT("End URL:"); ?></label>
<input type='text' size='80' id='url_<?php echo $esrow['surveyls_language']; ?>' name='url_<?php echo $esrow['surveyls_language']; ?>' value="<?php echo $esrow['surveyls_url']; ?>" />
<input type='text' size='80' id='url_<?php echo $esrow['surveyls_language']; ?>' name='url_<?php echo $esrow['surveyls_language']; ?>' value="<?php echo ($esrow['surveyls_url']!="")?$esrow['surveyls_url']:"http://"; ?>" />
</li>
<li><label for='urldescrip_<?php echo $esrow['surveyls_language']; ?>'><?php $clang->eT("URL description:"); ?></label>
<input type='text' id='urldescrip_<?php echo $esrow['surveyls_language']; ?>' size='80' name='urldescrip_<?php echo $esrow['surveyls_language']; ?>' value="<?php echo $esrow['surveyls_urldescription']; ?>" />
Expand Down Expand Up @@ -44,4 +44,4 @@
<?php } ?>
</select>
</li>
</ul>
</ul>

0 comments on commit 16302e2

Please sign in to comment.