Hello,
One of our customers has an issue using hotlink protection. The problem is that hotlink protection is enabled and if a new domain is added to the list of allowed domains, the .htaccess file doesn't get updated. Nothing happens and there is no error shown in the cPanel interface itself. However, checking cPanel's error log - /usr/local/cpanel/logs/error_log, the following messages are getting displayed :
Cpanel::IxHash: Warning, mangling data key urls which is longer than 64 bytes, using safe_html_encode
Cpanel::IxHash: at /usr/local/cpanel/Cpanel/ExpVar.pm line 405
Cpanel::ExpVar::expvar('$FORM{\'urls\'}', 0, 1, 0) called at cpanel line 1459
main::parsetag('Mime="add_hotlink($FORM{\'urls\'},$FORM{\'exts\'},$FORM{\'rurl\'...', undef) called at cpanel line 1091
main::real_exectag('<cpanel Mime="add_hotlink($FORM{\'urls\'},$FORM{\'exts\'},$FORM{...') called at cpanel line 3876
main::dotag_finished_headers(1) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../images/tools.gif">^J<cpanel setvar="...') called at cpanel line 3612
main::cpanel_parse('GLOB(0xa929338)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
Cpanel::IxHash: Warning, mangling data key urls which is longer than 64 bytes, using safe_html_encode
Cpanel::IxHash: at /usr/local/cpanel/Cpanel/ExpVar.pm line 405
Cpanel::ExpVar::expvar('$FORM{\'urls\'}', 0, 1, 0) called at cpanel line 1465
main::parsetag('print="$FORM{\'urls\'}"', undef) called at cpanel line 1091
main::real_exectag('<cpanel print="$FORM{\'urls\'}">') called at cpanel line 3876
main::dotag_finished_headers(0) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../images/tools.gif">^J<cpanel setvar="...') called at cpanel line 3612
main::cpanel_parse('GLOB(0xa929338)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
Cpanel::IxHash: Warning, mangling data key urls which is longer than 64 bytes, using safe_html_encode
Cpanel::IxHash: at /usr/local/cpanel/Cpanel/ExpVar.pm line 405
Cpanel::ExpVar::expvar('$FORM{\'urls\'}', 0, 1) called at cpanel line 3261
main::doprint('$FORM{\'urls\'}', 0) called at cpanel line 1169
eval {...} called at cpanel line 1169
main::real_exectag('<cpanel print="$FORM{\'urls\'}">') called at cpanel line 3876
main::dotag_finished_headers(0) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../images/tools.gif">^J<cpanel setvar="...') called at cpanel line 3612
main::cpanel_parse('GLOB(0xa929338)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
The permissions / ownership for .htaccess are correct and we have tried running /scripts/upcp --force but the issue didn't get fixed. Any insights / suggestions that you can provide are welcome. Thanks in advance.
One of our customers has an issue using hotlink protection. The problem is that hotlink protection is enabled and if a new domain is added to the list of allowed domains, the .htaccess file doesn't get updated. Nothing happens and there is no error shown in the cPanel interface itself. However, checking cPanel's error log - /usr/local/cpanel/logs/error_log, the following messages are getting displayed :
Cpanel::IxHash: Warning, mangling data key urls which is longer than 64 bytes, using safe_html_encode
Cpanel::IxHash: at /usr/local/cpanel/Cpanel/ExpVar.pm line 405
Cpanel::ExpVar::expvar('$FORM{\'urls\'}', 0, 1, 0) called at cpanel line 1459
main::parsetag('Mime="add_hotlink($FORM{\'urls\'},$FORM{\'exts\'},$FORM{\'rurl\'...', undef) called at cpanel line 1091
main::real_exectag('<cpanel Mime="add_hotlink($FORM{\'urls\'},$FORM{\'exts\'},$FORM{...') called at cpanel line 3876
main::dotag_finished_headers(1) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../images/tools.gif">^J<cpanel setvar="...') called at cpanel line 3612
main::cpanel_parse('GLOB(0xa929338)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
Cpanel::IxHash: Warning, mangling data key urls which is longer than 64 bytes, using safe_html_encode
Cpanel::IxHash: at /usr/local/cpanel/Cpanel/ExpVar.pm line 405
Cpanel::ExpVar::expvar('$FORM{\'urls\'}', 0, 1, 0) called at cpanel line 1465
main::parsetag('print="$FORM{\'urls\'}"', undef) called at cpanel line 1091
main::real_exectag('<cpanel print="$FORM{\'urls\'}">') called at cpanel line 3876
main::dotag_finished_headers(0) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../images/tools.gif">^J<cpanel setvar="...') called at cpanel line 3612
main::cpanel_parse('GLOB(0xa929338)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
Cpanel::IxHash: Warning, mangling data key urls which is longer than 64 bytes, using safe_html_encode
Cpanel::IxHash: at /usr/local/cpanel/Cpanel/ExpVar.pm line 405
Cpanel::ExpVar::expvar('$FORM{\'urls\'}', 0, 1) called at cpanel line 3261
main::doprint('$FORM{\'urls\'}', 0) called at cpanel line 1169
eval {...} called at cpanel line 1169
main::real_exectag('<cpanel print="$FORM{\'urls\'}">') called at cpanel line 3876
main::dotag_finished_headers(0) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../images/tools.gif">^J<cpanel setvar="...') called at cpanel line 3612
main::cpanel_parse('GLOB(0xa929338)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
The permissions / ownership for .htaccess are correct and we have tried running /scripts/upcp --force but the issue didn't get fixed. Any insights / suggestions that you can provide are welcome. Thanks in advance.