Anagram: HTML encode scrambles.
Although this isn't _exactly_ a user-supplied string, it is still somewhat under their control. Better safe than sorry. Thanks to @mintsoft for the suggestion.master
parent
e3bc84c52d
commit
0e95d935b4
|
@ -105,7 +105,7 @@ handle remainder => sub {
|
|||
} while ($w eq $match_word);
|
||||
# Do not cache the scrambled versions since the shuffle is random.
|
||||
return $word,
|
||||
html => html_output('Sorry, we found no anagrams for "' . html_enc($word) . '". We scrambled it for you:', $w),
|
||||
html => html_output('Sorry, we found no anagrams for "' . html_enc($word) . '". We scrambled it for you:', html_enc($w)),
|
||||
is_cached => 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue