add a bit of input sanitization
add install instructions
This commit is contained in:
@@ -31,7 +31,7 @@ else {
|
||||
$turns = 0 ;
|
||||
$winner = "" ;
|
||||
$first = "" ;
|
||||
$data = trim( $_POST["log"] ) ;
|
||||
$data = htmlspecialchars(trim( $_POST["log"] ) ) ;
|
||||
$data_ar = preg_split("/\r\n|\n|\r/", $data);
|
||||
|
||||
foreach ($data_ar as $line ) {
|
||||
@@ -45,7 +45,7 @@ else {
|
||||
$winner = $line_a[0] ;
|
||||
}
|
||||
|
||||
if( preg_match( '/^Played <color=#[A-Z0-9]+>(.*)<\/color>/', $line, $match ) ) {
|
||||
if( preg_match( '/^Played <color=#[A-Z0-9]+>(.*)<\/color>/', $line, $match ) ) {
|
||||
guessExpansion( $match[1], $cards, $ext ) ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user