Browse Source

Merge pull request #382 from lwzm/fix-swagger-json-format

Escape control-characters in generated swagger
Maurits van der Schee 6 years ago
parent
commit
2637fd8f92
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api.php

+ 1
- 1
api.php View File

2367
 			if ($i>0) echo ',';
2367
 			if ($i>0) echo ',';
2368
 			echo '{';
2368
 			echo '{';
2369
 			echo '"name":"'.$table['name'].'",';
2369
 			echo '"name":"'.$table['name'].'",';
2370
-			echo '"description":"'.$table['comments'].'"';
2370
+			echo '"description":'.json_encode($table['comments']);
2371
 			echo '}';
2371
 			echo '}';
2372
 		}
2372
 		}
2373
 		echo '],';
2373
 		echo '],';

Loading…
Cancel
Save