[BUG]HTTPS not followed correctly in several files

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Found these bugs when I enabled HTTPS on my site and tried to do certain things.

account_add_folder.php

Problem on line 94:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/account_add_folder.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Fix:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/account_add_folder.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
account_edit.php

Find on line 133:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/account_edit.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Replace with:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/account_edit.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
account_edit_folder.php

Find on line 123:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/account_edit_folder.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Replace with:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/account_edit_folder.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Find on line 127:
Code:
<a href="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/<?php echo $fileFolder->id; ?>~f" target="_blank">http://<?php echo _CONFIG_SITE_FULL_URL; ?>/<?php echo $fileFolder->id; ?>~f</a>
Replace with:
Code:
<a href="<?php echo WEB_ROOT; ?>/<?php echo $fileFolder->id; ?>~f" target="_blank">http://<?php echo WEB_ROOT; ?>/<?php echo $fileFolder->id; ?>~f</a>
account_edit_item.php

Find on line 102:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/account_edit_item.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Replace with:
Code:
<form class="international" method="post" action="http://<?php echo WEB_ROOT; ?>/account_edit_item.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
account_folders.php

Find on line 128:
Code:
echo '<a href="http://' . _CONFIG_SITE_FULL_URL . '/' . $fileFolder['id'] . '~f" target="_blank">';
Replace with:
Code:
echo '<a href="' . WEB_ROOT . '/' . $fileFolder['id'] . '~f" target="_blank">';
Find on line 134:
Code:
echo '<a href="http://' . _CONFIG_SITE_FULL_URL . '/' . $fileFolder['id'] . '~f" target="_blank">' . $fileFolder['id'] . '~f</a>';
Replace with:
Code:
echo '<a href="' . WEB_ROOT . '/' . $fileFolder['id'] . '~f" target="_blank">' . $fileFolder['id'] . '~f</a>';
Find on line 147:
Code:
$links[] = '<a href="http://' . _CONFIG_SITE_FULL_URL . '/account_edit_folder.' . SITE_CONFIG_PAGE_EXTENSION . '?u=' . $fileFolder['id'] . '"><img src="' . SITE_IMAGE_PATH . '/edit.png" width="16" height="16" title="edit item" style="margin:1px;"/></a>';
Replace with:
Code:
$links[] = '<a href="' . WEB_ROOT . '/account_edit_folder.' . SITE_CONFIG_PAGE_EXTENSION . '?u=' . $fileFolder['id'] . '"><img src="' . SITE_IMAGE_PATH . '/edit.png" width="16" height="16" title="edit item" style="margin:1px;"/></a>';
forgot_password.php

Find on line 90:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/forgot_password.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Replace with:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/forgot_password.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
forgot_password_reset.php

Find on line 88:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/forgot_password_reset.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join" autocomplete="off">
Replace with:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/forgot_password_reset.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join" autocomplete="off">
login.php

Find on line 72:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/login.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join" AUTOCOMPLETE="off">
Replace with:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/login.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join" AUTOCOMPLETE="off">
register.php

Find on line 159:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/register.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Replace with:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/register.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
report_file.php

Find on line 70:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/report_file.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
Replace With:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/report_file.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>" id="form-join">
view_folder.php

Find on line 106:
Code:
<form class="international" method="post" action="http://<?php echo _CONFIG_SITE_FULL_URL; ?>/<?php echo $fileFolder->id; ?>~f" id="form-join" AUTOCOMPLETE="off">
Replace with:
Code:
<form class="international" method="post" action="<?php echo WEB_ROOT; ?>/<?php echo $fileFolder->id; ?>~f" id="form-join" AUTOCOMPLETE="off">
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
shopping1782 said:
Thanks a lot!

Are these fixes build-in the next releases?
Yes, these have been fixed in the development code, so they'll be in the next release. :)