Skip to content

Commit

Permalink
Updated UserController and PositionController to sanitize text fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Regan committed Dec 14, 2014
1 parent e726bae commit 8c25e65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/position_create.blade.php
Expand Up @@ -36,7 +36,6 @@
</script>

{{ Form::open(array('url'=>'/position', 'method'=>'POST')) }}
{{ Form::label('name', 'Name of position') }}
{{ Form::hidden('fen', 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR', array('id' => 'fen')) }}
<table class="table">
<tr>
Expand All @@ -58,9 +57,10 @@
</tr>
<tr>
<td>
{{ Form::label('name', 'Name of position') }}
</td>
<td>
{{ Form::text('name', array('class' => 'form-control')) }}
{{ Form::text('name', '', array('class' => 'form-control')) }}
</td>
</tr>
<tr>
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Expand Up @@ -141,6 +141,7 @@
* Position
* Create
* Edit
* Position Create layout needs to be fixed
* Game Create
* User is white or black before submitting
* Game Edit
Expand Down Expand Up @@ -316,5 +317,7 @@
* 14\_12\_14\_06\_01\_000: Updated game edit to prevent player from making more than one move
* 14\_12\_14\_06\_01\_001: Updated position index to align link text with button
* 14\_12\_14\_06\_01\_002: Fixed routing issue in position edit; Updated user edit to recognize the submitter
* 14\_12\_14\_06\_02\_000: Updated UserController and PositionController to sanitize text fields

cd /Applications/MAMP/htdocs/CSCI15P4; git add --all; git commit -m "Fixed routing issue in position edit; Updated user edit to recognize the submitter"; git push origin master

cd /Applications/MAMP/htdocs/CSCI15P4; git add --all; git commit -m "Updated UserController and PositionController to sanitize text fields"; git push origin master

0 comments on commit 8c25e65

Please sign in to comment.