Skip to content

Commit

Permalink
Fixed issue #05979: values prefilled via URL are not passed through t…
Browse files Browse the repository at this point in the history
…o end URL

Dev also syntax highlighted end URL  so can see if it contains typos
  • Loading branch information
TMSWhite committed Apr 3, 2012
1 parent a076263 commit f5bc206
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/html.php
Expand Up @@ -861,7 +861,11 @@
. "<td align='left'>";
if ($surveyinfo['surveyls_url']!="")
{
$surveysummary .=" <a target='_blank' href=\"".htmlspecialchars($surveyinfo['surveyls_url'])."\" title=\"".htmlspecialchars($surveyinfo['surveyls_url'])."\">{$surveyinfo['surveyls_urldescription']}</a>";
templatereplace($surveyinfo['surveyls_url']);
$_url = htmlspecialchars(strip_tags(LimeExpressionManager::GetLastPrettyPrintExpression()));
templatereplace($surveyinfo['surveyls_urldescription']);
$_desc = LimeExpressionManager::GetLastPrettyPrintExpression();
$surveysummary .=" <a target='_blank' href=\"".$_url."\" title=\"".$_url."\">{$_desc}</a>";
}
else
{
Expand Down
1 change: 1 addition & 0 deletions group.php
Expand Up @@ -366,6 +366,7 @@

//Before doing the "templatereplace()" function, check the $thissurvey['url']
//field for limereplace stuff, and do transformations!
$thissurvey['surveyls_url']=templatereplace($thissurvey['surveyls_url']); // to do INSERTANS substitutions
$thissurvey['surveyls_url']=passthruReplace($thissurvey['surveyls_url'], $thissurvey);

$content='';
Expand Down

2 comments on commit f5bc206

@TMSWhite
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be ported to Yii

@TMSWhite
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Please sign in to comment.