Skip to content
Snippets Groups Projects
Commit cb0a0a46 authored by Vrelnir's avatar Vrelnir
Browse files

Merge branch 'exploit-fix' into 'dev'

Exploit fix

See merge request !2344
parents 81f76432 5a5d9e71
No related branches found
No related tags found
1 merge request!2344Exploit fix
......@@ -521,8 +521,7 @@ You sit down with a few pieces of wood, and a sharp rock. With a little time, yo
<<if $island[$island.home].decoration is undefined or $island[$island.home].decoration is "">>
<<set $island[$island.home].decoration to "figurines">>
<</if>>
<<set $island[$island.home].decoration to Util.escape($island[$island.home].decoration)>>
<<run $island[$island.home].decoration.replace("[","")>><<run $island[$island.home].decoration.replace("]","")>><<run $island[$island.home].decoration.replace("|","")>>
<<set $island[$island.home].decoration to Util.escape($island[$island.home].decoration).replaceAll("[", "&#91;").replaceAll("]", "&#93;")>>>>
<</link>>
<br>
......
......@@ -618,8 +618,7 @@ What should your safe word be? <<if $wintersafeword is "" or $wintersafeword is
<<link [[Next|Museum Horse Extreme]]>>
<<if $wintersafeword is "" or $wintersafeword is undefined>><<set $wintersafeword to "Marshmallow">><</if>>
<<set $wintersafeword to Util.escape($wintersafeword)>>
<<run $wintersafeword.replace("[","")>><<run $wintersafeword.replace("]","")>><<run $wintersafeword.replace("|","")>>
<<set $wintersafeword to Util.escape($wintersafeword).replaceAll("[", "&#91;").replaceAll("]", "&#93;")>>
<</link>>
<br>
......
......@@ -100,8 +100,7 @@ You approach the paperhangings corner. Samples of pre-made posters and wallpaper
<<link [['Buy (£' + _posterCost / 50 + ')'|Furniture Shop Papers]]>>
<<set $money -= _posterCost * 2>>
<<if _chosenPosterCustom is "" or _chosenPosterCustom is undefined>><<set _chosenPosterCustom to "custom design">><</if>>
<<set _normalisedName to Util.escape(_chosenPosterCustom)>>
<<run _normalisedName.replace("[","")>><<run _normalisedName.replace("]","")>><<run _normalisedName.replace("|","")>>
<<set _normalisedName to Util.escape(_chosenPosterCustom).replaceAll("[", "&#91;").replaceAll("]", "&#93;")>>
<<run Furniture.set('poster', 'poster', {
name : _normalisedName,
nameCap : _normalisedName.toUpperFirst()
......@@ -164,8 +163,7 @@ You approach the paperhangings corner. Samples of pre-made posters and wallpaper
<<link [['Buy (£' + _wallpaperCost / 50 + ')'|Furniture Shop Papers]]>>
<<set $money -= _wallpaperCost * 2>>
<<if _chosenWallpaperCustom is "" or _chosenWallpaperCustom is undefined>><<set _chosenWallpaperCustom to "custom design">><</if>>
<<set _normalisedName to Util.escape(_chosenWallpaperCustom)>>
<<run _normalisedName.replace("[","")>><<run _normalisedName.replace("]","")>><<run _normalisedName.replace("|","")>>
<<set _normalisedName to Util.escape(_chosenWallpaperCustom).replaceAll("[", "&#91;").replaceAll("]", "&#93;")>>
<<run Furniture.set('wallpaper', 'wallpaper', {
name : _normalisedName,
nameCap : _normalisedName.toUpperFirst()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment