Skip to content

Commit

Permalink
Correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
e-alfred committed Sep 17, 2017
1 parent c61233c commit 0b8d79e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions controller/httpdownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ public function Add ()
$OPTIONS['http-passwd'] = $_POST['OPTIONS']['HTTPPasswd'];
}

if (isset ($_POST['OPTIONS']['HTTPReferrer']) && strlen (trim ($_POST['OPTIONS']['HTTPReferrer'])) > 0)
if (isset ($_POST['OPTIONS']['HTTPReferer']) && strlen (trim ($_POST['OPTIONS']['HTTPReferer'])) > 0)
{
$OPTIONS['referrer'] = $_POST['OPTIONS']['HTTPReferrer'];
$OPTIONS['referer'] = $_POST['OPTIONS']['HTTPReferer'];
}

if (isset ($_POST['OPTIONS']['HTTPUseragent']) && strlen (trim ($_POST['OPTIONS']['HTTPUseragent'])) > 0)
Expand Down
4 changes: 2 additions & 2 deletions js/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $(document).ready (function ()
{
HTTPUser: $('#option-http-user').val (),
HTTPPasswd: $('#option-http-pwd').val (),
HTTPReferrer: $('#option-http-referrer').val (),
HTTPReferer: $('#option-http-referer').val (),
HTTPUseragent: $('#option-http-useragent').val ()
});
}
Expand All @@ -79,7 +79,7 @@ $(document).ready (function ()
InputURL.val ('');
$('#option-http-user').val ('');
$('#option-http-pwd').val ('');
$('#option-http-referrer').val ('');
$('#option-http-referer').val ('');
$('#option-http-useragent').val ('');
});

Expand Down
2 changes: 1 addition & 1 deletion js/add.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div class="group-option">
<label for="option-http-user"><?php print ($l->t ('Basic Auth User')); ?> :</label><input type="text" id="option-http-user" placeholder="<?php print ($l->t ('Username')); ?>" />
<label for="option-http-pwd"><?php print ($l->t ('Basic Auth Password')); ?> :</label><input type="password" id="option-http-pwd" placeholder="<?php print ($l->t ('Password')); ?>" />
<label for="option-http-referrer"><?php print ($l->t ('Referrer')); ?> :</label><input type="text" id="option-http-referrer" placeholder="<?php print ($l->t ('Referrer')); ?>" />
<label for="option-http-referer"><?php print ($l->t ('Referer')); ?> :</label><input type="text" id="option-http-referer" placeholder="<?php print ($l->t ('Referer')); ?>" />
<label for="option-http-useragent"><?php print ($l->t ('User Agent')); ?> :</label><input type="text" id="option-http-useragent" placeholder="<?php print ($l->t ('Useragent')); ?>" />
</div>
</div>
Expand Down

0 comments on commit 0b8d79e

Please sign in to comment.