minor improvements
minor improvements

file:a/index.php -> file:b/index.php
--- a/index.php
+++ b/index.php
@@ -10,7 +10,7 @@
 
 $page = filter_var ($_GET['page'], FILTER_VALIDATE_INT);
 $hand = filter_var ($_GET['hand'], FILTER_VALIDATE_INT);
-$card = filter_var ($_GET['card'], FILTER_FLAG_STRIP_HIGH);
+$card = filter_var ($_GET['card'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);
 $ajax = filter_var ($_GET['ajax'], FILTER_VALIDATE_BOOLEAN);
 
 $display->page ($page, $hand, $card, $ajax);

--- a/style/tpl/pagination.tpl
+++ b/style/tpl/pagination.tpl
@@ -5,7 +5,7 @@
 			{assign var="_hand" value=$smarty.get.hand}
 			Showing <strong>{$hands.$_hand}{if $smarty.get.card}/{$smarty.get.card|htmlentities}{/if}</strong> combinations
 		{else}
-			Showing <strong>all/{$smarty.get.card|htmlentities}</strong> combinations
+			Showing <strong>all{if $smarty.get.card}/{$smarty.get.card|htmlentities}{/if}</strong> combinations
 		{/if}
 		<br />
 

comments