View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20410 | Bug reports | Survey editing | public | 2026-01-22 09:19 | 2026-02-28 00:33 |
| Reporter | DenisChenu | Assigned To | |||
| Priority | none | Severity | minor | ||
| Status | new | Resolution | open | ||
| Summary | 20410: Url set for kcfinder link is bad if baseUrl is set | ||||
| Description | When config.php needs to be updated for baseUrl : it breaks the call of kcfinder link and ressource | ||||
| Steps To Reproduce | Steps to reproduceSetup your system, with subdirectory or not Expected resultSee the same screen without 404 Actual resultBroken screen with 404 | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 8 | ||||
| Complete LimeSurvey version number (& build) | 6.16.4 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | debian | ||||
| Webserver software & version (if known) | nginx | ||||
| PHP Version | 8.4 | ||||
|
Checked too with 6.15.4+250710 |
|
|
Hi, we've encountered the same problem. Attached is a patch that removes the baseurl part. limesurvey-kcfinder.patch (494 bytes)
--- vendor/kcfinder/tpl/tpl_browser.php.orig 2026-02-26 09:17:45.362037179 +0000 +++ vendor/kcfinder/tpl/tpl_browser.php 2026-02-26 09:17:52.026049182 +0000 @@ -2,7 +2,6 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>KCFinder: /<?php echo $this->session['dir'] ?></title> -<base href="<?= Yii::app()->request->getBaseUrl() ?>/"> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> <?php INCLUDE "tpl/tpl_css.php" ?> <?php INCLUDE "tpl/tpl_javascript.php" ?> |
|
|
If i remind , added for a security issue :( Maybe must be |
|
|
Got it : https://github.com/LimeSurvey/LimeSurvey/commit/f495e4fc65e9f608b21b1c8cda9f7c58882a5914 |
|
|
Okay, no idea what they tried to fix and the conversation in the issues doesn't spark confidence. It was for sure not tested, because it's broken since this 'fix'. |
|
|
Hi again, |
|
|
Sorry, the PR did not work. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-01-22 09:19 | DenisChenu | New Issue | |
| 2026-01-22 09:19 | DenisChenu | File Added: with_baseUrl.png | |
| 2026-01-22 09:19 | DenisChenu | File Added: null_baseUrl.png | |
| 2026-01-22 09:20 | DenisChenu | Note Added: 84124 | |
| 2026-01-22 09:20 | DenisChenu | Bug heat | 0 => 2 |
| 2026-02-26 10:27 | Bross | Note Added: 84324 | |
| 2026-02-26 10:27 | Bross | File Added: limesurvey-kcfinder.patch | |
| 2026-02-26 10:27 | Bross | Bug heat | 2 => 4 |
| 2026-02-26 10:27 | Bross | Issue Monitored: Bross | |
| 2026-02-26 10:27 | Bross | Bug heat | 4 => 6 |
| 2026-02-26 10:48 | DenisChenu | Note Added: 84325 | |
| 2026-02-26 10:49 | DenisChenu | Note Added: 84326 | |
| 2026-02-26 11:49 | Bross | Note Added: 84327 | |
| 2026-02-27 12:15 | Bross | Note Added: 84341 | |
| 2026-02-28 00:27 | Changeset attached | => LimeSurvey master a0609a6b | |
| 2026-02-28 00:27 | guest | Note Added: 84342 | |
| 2026-02-28 00:27 | guest | Bug heat | 6 => 8 |
| 2026-02-28 00:32 | c_schmitz | Note Deleted: 84342 | |
| 2026-02-28 00:32 | c_schmitz | Bug heat | 8 => 6 |
| 2026-02-28 00:32 | c_schmitz | Note Added: 84343 | |
| 2026-02-28 00:32 | c_schmitz | Bug heat | 6 => 8 |
| 2026-02-28 00:33 | c_schmitz | Note Edited: 84343 |