Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 7052e44

Browse files
committed
Output now matches in case of multi-line output
Fixes #5
1 parent 37fa123 commit 7052e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eval.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
$status = fgets($socket);
5252
$contents = "";
5353
while(!feof($socket))
54-
$contents = $contents."\n".fgets($socket);
54+
$contents = $contents.fgets($socket);
5555
if($status == 0) {
5656
// oops! compile error
5757
$query = "UPDATE solve SET status=1 WHERE (username='".$_SESSION['username']."' AND problem_id='".$_POST['id']."')";

0 commit comments

Comments
 (0)